RUNME 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. # Pentadactyl
  14. ln -s dotfiles/pentadactyl/pentadactylrc ~/.pentadactylrc
  15. # Screen
  16. ln -s dotfiles/screen/screenrc ~/.screenrc
  17. # Make a known_hosts file if none, otherwise zsh throws an error for our .zshrc
  18. echo "Checking for known_hosts in ~/.ssh/..."
  19. if test -f ~/.ssh/known_hosts; then
  20. echo "known_hosts found..."
  21. else
  22. echo "Does not exist. Creating..."
  23. mkdir -p ~/.ssh
  24. touch ~/.ssh/known_hosts
  25. fi
  26. # Ack for this user (perl 5.8.8 or higher on system)
  27. # Curl may need to have proxy settings
  28. echo "Checking for ack in ~/bin/..."
  29. if test -f ~/bin/ack; then
  30. echo "ack found..."
  31. else
  32. echo "Downloading ack from betterthangrep.com..."
  33. mkdir -p ~/bin
  34. curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3
  35. fi
  36. # This repository has vim plugins as submodules, so initialise and clone them in
  37. git submodule init
  38. git submodule update
  39. # Add more vim plugins from this dotfiles directory, like so:
  40. # git submodule add git://github.com/tpope/vim-pathogen.git vim/bundle/pathogen
  41. #
  42. # Apart from updating plugins individually, you can update all submodules in one shot
  43. # git submodule foreach git pull origin master
  44. # color for git! Some machines don't have it.
  45. git config --global color.ui true
  46. git config --global core.editor "vim"