diff options
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -1,22 +1,25 @@ -# Run this first - -source profile - +# Links configuration files to the ones listed here. Backup and remove your's +# and then run this script (while inside repo directory). +# +# Note: This solution is lazy and causes some problems. Like not being able to +# track vim pluggins. # bash -ln -sf ~/.dotfiles/profile ~/.profile -ln -sf ~/.dotfiles/bash_aliases ~/.bash_aliases -ln -sf ~/.dotfiles/bashrc ~/.bashrc -ln -sf ~/.dotfiles/inputrc ~/.inputrc # allow Vim mode in bash +ln -s ${PWD}/profile ~/.profile +ln -s ${PWD}/bash_aliases ~/.bash_aliases +ln -s ${PWD}/bashrc ~/.bashrc +ln -s ${PWD}/inputrc ~/.inputrc # vim -[ -d "$XDG_DATA_HOME"/vim/ ] || mkdir -p "$XDG_DATA_HOME"/vim/{undo,swap,backup} +# ~/.vimrc takes priority over ~/.vim/vimrc, so remove the former first + +[ -d ~/.vim/ ] || mkdir -p ~/.vim/{undo,swap,backup,plugin} -ln -sf ~/.dotfiles/vimrc ~/.config/vim/vimrc -ln -sf ~/.dotfiles/fun.vim ~/.config/vim/fun.vim +ln -s ${PWD}/vim/vimrc ~/.vim/vimrc +ln -s ${PWD}/vim/fun.vim ~/.vim/fun.vim # done |
