summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh25
1 files changed, 14 insertions, 11 deletions
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