aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-28 23:34:57 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-28 23:34:57 +1200
commit746a37a140733a57ee6228b5bfbf3c373deaf494 (patch)
treee924c40865f9e4e4e02b033f2897ae5e09458381 /install
parentMove options into .bashrc (diff)
downloaddotfiles-746a37a140733a57ee6228b5bfbf3c373deaf494.tar.gz
dotfiles-746a37a140733a57ee6228b5bfbf3c373deaf494.zip
Hook prevents loading unwanted bash-completion
This speeds up logins by a *lot*
Diffstat (limited to 'install')
-rwxr-xr-xinstall33
1 files changed, 17 insertions, 16 deletions
diff --git a/install b/install
index 05f8bbf4..d75bb934 100755
--- a/install
+++ b/install
@@ -10,26 +10,27 @@ fi
# Check out submodules
(cd -- "$dotfiles" && git submodule update --init)
-# Create a binaries directory
-mkdir -p -- "$HOME"/.local/bin
+# Create needed directories if they don't exist
+mkdir -p -- "$HOME"/{.config,.local/bin}
# Link in essential logical binaries
ln -insv -- "$dotfiles"/ack/ack "$HOME"/.local/bin
# Link in essential configuration files
-ln -insv -- "$dotfiles"/ack/ackrc "$HOME"/.ackrc
-ln -insv -- "$dotfiles"/bash/bash_logout "$HOME"/.bash_logout
-ln -insv -- "$dotfiles"/bash/bash_profile "$HOME"/.bash_profile
-ln -insv -- "$dotfiles"/bash/bashrc "$HOME"/.bashrc
-ln -insv -- "$dotfiles"/bash/bashrc.d "$HOME"/.bashrc.d
-ln -insv -- "$dotfiles"/curl/curlrc "$HOME"/.curlrc
-ln -insv -- "$dotfiles"/git/gitconfig "$HOME"/.gitconfig
-ln -insv -- "$dotfiles"/readline/inputrc "$HOME"/.inputrc
-ln -insv -- "$dotfiles"/sh/profile "$HOME"/.profile
-ln -insv -- "$dotfiles"/sh/profile.d "$HOME"/.profile.d
-ln -insv -- "$dotfiles"/terminfo "$HOME"/.terminfo
-ln -insv -- "$dotfiles"/vim/vimrc "$HOME"/.vimrc
-ln -insv -- "$dotfiles"/vim "$HOME"/.vim
+ln -insv -- "$dotfiles"/ack/ackrc "$HOME"/.ackrc
+ln -insv -- "$dotfiles"/bash/bash_completion "$HOME"/.config/bash_completion
+ln -insv -- "$dotfiles"/bash/bash_logout "$HOME"/.bash_logout
+ln -insv -- "$dotfiles"/bash/bash_profile "$HOME"/.bash_profile
+ln -insv -- "$dotfiles"/bash/bashrc "$HOME"/.bashrc
+ln -insv -- "$dotfiles"/bash/bashrc.d "$HOME"/.bashrc.d
+ln -insv -- "$dotfiles"/curl/curlrc "$HOME"/.curlrc
+ln -insv -- "$dotfiles"/git/gitconfig "$HOME"/.gitconfig
+ln -insv -- "$dotfiles"/readline/inputrc "$HOME"/.inputrc
+ln -insv -- "$dotfiles"/sh/profile "$HOME"/.profile
+ln -insv -- "$dotfiles"/sh/profile.d "$HOME"/.profile.d
+ln -insv -- "$dotfiles"/terminfo "$HOME"/.terminfo
+ln -insv -- "$dotfiles"/vim/vimrc "$HOME"/.vimrc
+ln -insv -- "$dotfiles"/vim "$HOME"/.vim
# Link in shell stuff
while getopts :gmntx opt; do
@@ -44,7 +45,7 @@ while getopts :gmntx opt; do
ln -insv -- "$dotfiles"/mutt "$HOME"/.mutt
;;
n)
- mkdir -pv -- "$HOME"/.config "$HOME"/.local/share/newsbeuter
+ mkdir -pv -- "$HOME"/.local/share/newsbeuter
ln -insv -- "$dotfiles"/newsbeuter "$HOME"/.config
;;
t)