Giter Club home page Giter Club logo

dotfiles's Introduction

notnarb/dotfiles

Collection of my dotfiles, mostly for emacs usage

Docker image

https://img.shields.io/docker/build/notnarb/dotfiles.svg https://img.shields.io/docker/automated/notnarb/dotfiles.svg

To run a portable version of these dotfiles with emacs and tmux included, run:

docker run -it notnarb/dotfiles

Usage examples

Mount current directory (in ~/w/) as current (host) user:

sudo docker run -it -v $PWD:/root/w/ -e PUID=$UID notnarb/dotfiles

Same as above but also allow ssh forwarding from host:

sudo docker run -it -v $(dirname $SSH_AUTH_SOCK):$(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK -v $PWD:/root/w/ -e PUID=$UID notnarb/dotfiles

Advanced usage

Setting ‘PUID’ will automatically create a user with the same user id within the container and su’s to that user. This allows you to edit files within the container as if you were the user running the command.

(There’s probably a better way to do this, but this works well enough for me!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.