RUNME 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/bin/sh
  2. # Running this script creates the appropriate symlinks in home
  3. # Use from within dotfiles directory
  4. # A lot of this extra knowledge courtesy of vimcasts.org!
  5. # Vim
  6. ln -s dotfiles/vim/ ~/.vim
  7. ln -s dotfiles/vim/vimrc ~/.vimrc
  8. # Vim persistent undo directory
  9. mkdir ~/.vimundo
  10. # Zsh
  11. ln -s dotfiles/zsh/zshrc ~/.zshrc
  12. ln -s dotfiles/zsh/zshenv ~/.zshenv
  13. ln -s dotfiles/zsh/zshlocal ~/.zshlocal
  14. # Pentadactyl
  15. ln -s dotfiles/pentadactyl/pentadactylrc ~/.pentadactylrc
  16. # Screen
  17. ln -s dotfiles/screen/screenrc ~/.screenrc
  18. # Make a known_hosts file if none, otherwise zsh throws an error for our .zshrc
  19. echo "Checking for known_hosts in ~/.ssh/..."
  20. if test -f ~/.ssh/known_hosts; then
  21. echo "known_hosts found..."
  22. else
  23. echo "Does not exist. Creating..."
  24. mkdir -p ~/.ssh
  25. touch ~/.ssh/known_hosts
  26. fi
  27. # Ack for this user (perl 5.8.8 or higher on system)
  28. # Curl may need to have proxy settings
  29. echo "Checking for ack in ~/bin/..."
  30. if test -f ~/bin/ack; then
  31. echo "ack found..."
  32. else
  33. echo "Downloading ack from betterthangrep.com..."
  34. mkdir -p ~/bin
  35. curl http://betterthangrep.com/ack-standalone > ~/bin/ack
  36. chmod 0755 ~/bin/ack
  37. fi
  38. # This repository has vim plugins as submodules, so initialise and clone them
  39. git submodule init
  40. git submodule update
  41. # Add more vim plugins from this dotfiles directory, like so:
  42. # git submodule add git://github.com/tpope/module.git vim/bundle/module
  43. #
  44. # Apart from updating plugins individually, you can update all submodules
  45. # git submodule foreach git pull origin master
  46. # color for git! Some machines don't have it.
  47. git config --global color.ui true
  48. git config --global core.editor "vim"