commit ed0b619700e1c11c3fb80102fef57b54e4b69e74 parent 7ef024aa101fd30630a9ce62f01b89dfddf7d9d1 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Tue, 21 Aug 2018 12:32:14 +0200 Created install script for dotfiles Diffstat:
A | install.sh | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh @@ -0,0 +1,14 @@ +#!/bin/bash +for i in *; do + case "$i" in + "vim-config") + echo "ln -sf $(pwd)\"$i\" ~/.config/\"$i\"" + ln -sf $(pwd)/"$i" ~/.config/"$i" + ;; + *) + echo "ln -sf $(pwd)/$i ~/.$i" + ln -sf $(pwd)/$i ~/.$i + ;; + esac +done +ln -sf ~/.config/vim-config/init.vimrc ~/.vimrc