Share some of my dotfiles across configurations
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.

21 lines
485B

  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  3. link_config () {
  4. local name="$1"
  5. echo "Installing $name"
  6. ln -sb "$DIR/$name" "$HOME/.$name"
  7. }
  8. if [ ! -d ~/.vim/bundle ]; then
  9. mkdir -p ~/.vim/bundle
  10. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  11. vim +PluginInstall +qall
  12. fi
  13. for file in $(ls "$DIR"); do
  14. [ "$file" == "install.sh" ] && continue
  15. [ "$file" == "README.md" ] && continue
  16. link_config "$file"
  17. done