This repository holds my configuration files so that I can clone them to other machines easily.
#Installation
git clone git://github.com/zanshin/dotfiles.git ~/.dotfiles
There are several git submodules included in this configuration. On a new installation these submodules need to be initialized and updated.
$ cd ~/.dotfiles
$ git submodule init
$ git submodule update
It is also possible to use git pull
to update the submodules.
$ cd ~/.dotfiles
$ git submodule foreach git pull origin master
Vundle managed Vim bundles maybe updated from the command line via
$ vim +BundleInstall +qall
#Setup
On those Mac OS machines where I install Homebrew I also edit /etc/paths
to move the /usr/local/bin
entry to the top of the list. This ensures that Homebrew-managed programs and libraries occur prior to /usr/bin
and system-provided programs and libraries. The resulting /etc/paths
files looks like this:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
For zsh configuration create the following symlinks:
ln -s ~/.dotfiles/zsh ~/.zsh
ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc
ln -s ~/.dotfiles/zsh/zshenv ~/.zshenv
ln -s ~/.dotfiles/zsh/zprofile ~/.zprofile
For ssh configuration, create the following symlink:
ln -s ~/.dotfiles/ssh/config ~/.ssh/config
For Vim configuration and use, create the following symlinks:
ln -s ~/.dotfiles/vim ~/.vim
ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
ln -s ~/.dotfiles/vim/gvimrc ~/.gvimrc
To install Vim bundles, which are managed via Vundle, via the command line run
vim +BundleInstall +qall
From inside of Vim run
:BundleInstall
If this is the first time setting up Vim on the machine, it will be necessary to install Vundle itself, prior to teh bundles.
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
For those machines where zsh isn't installed or won't easily work, create the following symlinks:
$ ln -s ~/.dotfiles/bash/bash_profile ~/.bash_profile
$ ln -s ~/.dotfiles/bash/bashrc ~/.bashrc
$ ln -s ~/.dotfiles/bash/bash_aliases ~/.bash_aliases
$ ln -s ~/.dotfiles/bash/bash_history ~/.bash_history
For Git configuration and global ignore files, create these symlinks:
$ ln -s ~/.dotfiles/git/gitconfig ~/.gitconfig
$ ln -s ~/.dotfiles/git/gitignore_global ~/.gitignore_global
For machines where Sublime Text 2 cannot be installed, link
git/gitconfig_remote
instead. This will use vimdiff
as the merge and diff
tool rather than ST2.
For Mercurial configuration and global ignore files, create these symlinks:
$ ln -s ~/.dotfiles/hg/hgrc ~/.hgrc
$ ln -s ~/.dotfiles/hg/hgignore_global ~/.hgignore_global
For TextMate 2 settings create the following symlink:
$ ln -s ~/.dotflles/textmate/tm_properties ~/.tm_properties
For tmux configuration create this symlink:
$ ln -s ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
Install Package Control following the instructions here: http://wbond.net/sublime_packages/package_control
For Sublime Text 2 settings, remove the User
directory from
~/Library/Application Support/Sublime Text 2/Packages
. Then add this symlink:
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
$ ln -s ~/.dotfiles/sublimetext/User User
Finally, to enable the command line tool, subl
, add this symlink:
$ ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
##z
To enable z directory function from https://github.com/rupa/z, source the
z.sh
script in the .zshrc
file:
source ${HOME}/.dotfiles/z/z.sh
Install doing
gem (https://github.com/ttscoff/doing/ & http://brettterpstra.com/2014/03/15/scatterbrains-3-a-new-tool-for-doing/)
$ [sudo] gem install doing
Create symlink to doingrc
file.
$ ln -s ~/.dotfiles/doing/doingrc ~/.doingrc