/ #GitHub #Mac 

Dotfiles

For the last few years I have been grabbing some we documented dotfiles from GitHub but most of them have either ended up reconfigured my Mac to the point of it being unrecognisable or they have just been a collection of useful aliases. The I came across Bashstrap, it was close enough to what I wanted so I forked it ….

screenshot_otyb2f

You can install them using the following commands;

git clone git@github.com:russmckendrick/dotfiles.git ~/.dotfiles<br>sudo easy_install Pygments<br>brew install tree<br>mv ~/.bash_profile ~/.dotfiles/backups/<br>mv ~/.bashrc ~/.dotfiles/backups/<br>mv ~/.gitconfig ~/.dotfiles/backups/<br>ln -s ~/.dotfiles/.bash_profile ~/.bash_profile<br>ln -s ~/.dotfiles/.bashrc ~/.bashrc<br>ln -s ~/.dotfiles/.gitconfig ~/.gitconfig<br>ln -s ~/.dotfiles/.hushlogin ~/.hushlogin<br>ln -s ~/.dotfiles/z.sh ~/.z.sh

Once installed you can do stuff like;

  • s . or s filename.txt will open your current directory or a file in Sublime Text 2

  • m README.md will open the specified file in Marked 2

  • Jump directories rapidly, without having to set aliases using Z

  • Syntax highlighted ‘cat’

amongst other things;

[embed]https://asciinema.org/a/11378[/embed]

Author

Russ McKendrick

Buys way too many vinyl records, writes a lot about Docker & loves orchestration. Works at @node4ltd / @n4stack has written for @PacktPublishing