17 lines
634 B
Bash
17 lines
634 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copies vim data from the dotfiles repo to the home directory.
|
|
|
|
set -e
|
|
|
|
src="$HOME/.dotfiles/vim"
|
|
dest="$HOME/.vim/"
|
|
|
|
if [ -d $src ]; then
|
|
[ -d "$src/spell" ] && echo "Syncing user dictionary" && cp -r "$src/spell" $dest
|
|
[ -d "$src/colors" ] && echo "Syncing user colors" && cp -r "$src/colors" $dest
|
|
[ -d "$src/after" ] && echo "Syncing after directory" && cp -r "$src/after" $dest
|
|
[ -d "$src/ftdetect" ] && echo "Syncing ftdetect" && cp -r "$src/ftdetect" $dest
|
|
[ -d "$src/autoload" ] && echo "Syncing autoload" && cp -r "$src/autoload" $dest
|
|
fi
|