RUNME 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 && chmod 0755 !#:3
  36. fi
  37. # This repository has vim plugins as submodules, so initialise and clone them in
  38. git submodule init
  39. git submodule update
  40. # Add more vim plugins from this dotfiles directory, like so:
  41. # git submodule add git://github.com/tpope/vim-pathogen.git vim/bundle/pathogen
  42. #
  43. # Apart from updating plugins individually, you can update all submodules in one shot
  44. # git submodule foreach git pull origin master
  45. # color for git! Some machines don't have it.
  46. git config --global color.ui true
  47. git config --global core.editor "vim"