aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-06-20 22:51:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-06-20 22:51:35 +1200
commitbebbc9bb1c32f3f460ca6d6e81446fcc996dc9d6 (patch)
treeb10dfe3d6269550146c4d1184921f379cd79af83 /install
parentNix DISPLAY, otherwise don't change environment (diff)
downloaddotfiles-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-xinstall10
1 files changed, 7 insertions, 3 deletions
diff --git a/install b/install
index 12116681..42b27a77 100755
--- a/install
+++ b/install
@@ -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"