diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-20 22:51:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-06-20 22:51:35 +1200 |
commit | bebbc9bb1c32f3f460ca6d6e81446fcc996dc9d6 (patch) | |
tree | b10dfe3d6269550146c4d1184921f379cd79af83 /install | |
parent | Nix DISPLAY, otherwise don't change environment (diff) | |
download | dotfiles-bebbc9bb1c32f3f460ca6d6e81446fcc996dc9d6.tar.gz dotfiles-bebbc9bb1c32f3f460ca6d6e81446fcc996dc9d6.zip |
Massive overhaul of structure for Bash files
* No longer using .bash_logout
* No longer using .bash_profile, using POSIX-compliant .profile
* instead; in particular, moved most of environment settings into
.profile
* Moved some of the separable functionality of both .profile and
.bashrc into subdirectories (some scripts shared, some not)
* Tidied implementation of ls/grep aliases
* Updated install script to reflect all of the above
Diffstat (limited to 'install')
-rwxr-xr-x | install | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,9 +7,7 @@ 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/bash/profile" "${HOME}/.profile" +ln -fs ".dotfiles/sh/profile" "${HOME}/.profile" ln -fs ".dotfiles/git/gitconfig" "${HOME}/.gitconfig" ln -fs ".dotfiles/mutt/muttrc" "${HOME}/.muttrc" ln -fs ".dotfiles/readline/inputrc" "${HOME}/.inputrc" @@ -17,6 +15,12 @@ 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 shell stuff. +[[ -e "${HOME}/.bashrc.d" ]] && rm -r "$HOME/.bashrc.d" +ln -fs ".dotfiles/bash/bashrc.d" "${HOME}/.bashrc.d" +[[ -e "${HOME}/.profile.d" ]] && rm -r "$HOME/.profile.d" +ln -fs ".dotfiles/sh/profile.d" "${HOME}/.profile.d" + # Link in Mutt stuff. [[ -e "${HOME}/.mutt" ]] && rm -r "${HOME}/.mutt" ln -fs ".dotfiles/mutt" "${HOME}/.mutt" |