You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
485 B
20 lines
485 B
#!/bin/bash
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
link_config () {
|
|
local name="$1"
|
|
echo "Installing $name"
|
|
ln -sb "$DIR/$name" "$HOME/.$name"
|
|
}
|
|
|
|
if [ ! -d ~/.vim/bundle ]; then
|
|
mkdir -p ~/.vim/bundle
|
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
vim +PluginInstall +qall
|
|
fi
|
|
|
|
for file in $(ls "$DIR"); do
|
|
[ "$file" == "install.sh" ] && continue
|
|
[ "$file" == "README.md" ] && continue
|
|
link_config "$file"
|
|
done
|
|
|