Share some of my dotfiles across configurations
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

21 rinda
485 B

  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