diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-05-22 16:45:51 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-05-22 16:45:51 +1200 |
commit | 30a733a86d959d81a865e7a6cb1bed6aa9c38428 (patch) | |
tree | 266e78bede6b693e0de92cf4bc429eed1c92aa27 /install | |
parent | Install script should clone executably (diff) | |
download | dotfiles-30a733a86d959d81a865e7a6cb1bed6aa9c38428.tar.gz dotfiles-30a733a86d959d81a865e7a6cb1bed6aa9c38428.zip |
Rename installation script
Diffstat (limited to 'install')
-rwxr-xr-x | install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/install b/install new file mode 100755 index 00000000..a30a0649 --- /dev/null +++ b/install @@ -0,0 +1,23 @@ +#!/bin/bash + +# Check out submodules. The --git-dir option doesn't work here. +cd "${HOME}/.dotfiles" +git submodule --quiet update --init +cd "${OLDPWD}" + +# Link in files, replacing whatever's already there. +ln -fs ".dotfiles/bash/bashrc" "${HOME}/.bashrc" +ln -fs ".dotfiles/bash/bash_profile" "${HOME}/.bash_profile" +ln -fs ".dotfiles/bash/bash_logout" "${HOME}/.bash_logout" +ln -fs ".dotfiles/git/gitconfig" "${HOME}/.gitconfig" +ln -fs ".dotfiles/readline/inputrc" "${HOME}/.inputrc" +ln -fs ".dotfiles/tmux/tmux.conf" "${HOME}/.tmux.conf" +ln -fs ".dotfiles/vim/vimrc" "${HOME}/.vimrc" +ln -fs ".dotfiles/vim/gvimrc" "${HOME}/.gvimrc" + +# Link in directories, removing whatever's already there first. +if [ -e "${HOME}/.vim" ]; then + rm -r "${HOME}/.vim" +fi +ln -fs ".dotfiles/vim" "${HOME}/.vim" + |