Organized files, set shebangs for scripts

This commit is contained in:
2018-12-03 16:22:01 -05:00
parent e58891c736
commit 3e6d75221f
13 changed files with 24 additions and 103 deletions

View File

@@ -1,7 +1,9 @@
#!/bin/zsh
# link files {{{ #
# Get directory variables from script.
. ../dirs.sh
. ../scripts/dirs.sh
# List of dotfiles I want to link to system.
dotfiles=(bashrc gitconfig inputrc imwheelrc vimrc xinitrc Xmodmap Xresources zshrc)
# cd $dot_dir
@@ -11,3 +13,15 @@ for dotfile in $dotfiles; do
# Link dotfile in repository to system dotfile.
ln -s "$dot_dir"/"$dotfile" ~/."$dotfile"
done
# }}} link files #
# setup nvim config {{{ #
orig_file="$sys_config_dir"/nvim/init.vim
# Remove system dotfile.
rm "$orig_file"
# Link dotfile in repository to system dotfile.
ln -s "$dot_dir"/nvim "$orig_file"
# }}} setup nvim config #

View File

@@ -1,7 +0,0 @@
# Get directory variables from script.
. ../dirs.sh
orig_file="$sys_config_dir"/nvim/init.vim
# Remove system dotfile.
rm "$orig_file"
# Link dotfile in repository to system dotfile.
ln -s "$dot_dir"/nvim "$orig_file"