From 4493a1b1867a7ed23e7bfbb96a113fb16560ab4b Mon Sep 17 00:00:00 2001 From: mitsuo Date: Mon, 22 Nov 2021 05:46:44 -0500 Subject: Cleanup bashrc and inputrc --- install.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index c5c69a9..1caf62c 100644 --- a/install.sh +++ b/install.sh @@ -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 -- cgit v1.2.3