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.

12345678910111213141516171819202122232425262728293031
  1. #! /usr/bin/env bash
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. if [ -e ~/.vim ]
  4. then
  5. if [ -h ~/.vim ]
  6. then
  7. rm ~/.vim
  8. else
  9. mv ~/.vim ~/.vim.old
  10. fi
  11. fi &&
  12. ln -sf "${dir}/vim" ~/.vim &&
  13. if [ -e ~/.vimrc ]
  14. then
  15. if [ -h ~/.vimrc ]
  16. then
  17. rm ~/.vimrc
  18. else
  19. mv ~/.vimrc ~/.vimrc.old
  20. fi
  21. fi &&
  22. ln -sf "${dir}/vimrc" ~/.vimrc &&
  23. (
  24. cd "${dir}" &&
  25. git submodule init &&
  26. git submodule update
  27. )