Dotfiles, utilities, and other apparatus.
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.

install.sh 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #!/bin/sh
  2. KIT_ROOT=$(pwd)
  3. echo "installing kit from $KIT_ROOT"
  4. echo "installing package prereqs"
  5. sudo apt-get install build-essential xterm tmux vim perl ack-grep \
  6. git git-gui htop zsh suckless-tools figlet xmonad trayer xmobar \
  7. volumeicon-alsa curl jq byzanz festival clipit redshift-gtk ranger \
  8. rofi xsettingsd wmctrl lynx perl-doc dict moreutils myrepos etckeeper \
  9. bzr cvs darcs mercurial subversion subversion-tools dunst i3lock
  10. echo "installing perl dependencies"
  11. sudo cpan -i Module::Build
  12. echo "vim setup"
  13. mkdir -p ~/.vim/bundle
  14. if [ ! -f ~/.vimrc ]; then
  15. ln -s "$KIT_ROOT/home/.vimrc" "$HOME/.vimrc"
  16. fi
  17. if [ ! -f ~/.gvimrc ]; then
  18. ln -s "$KIT_ROOT/home/.gvimrc" "$HOME/.gvimrc"
  19. fi
  20. if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
  21. git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/Vundle.vim
  22. fi
  23. echo "xmonad setup"
  24. echo "(don't forget to point /usr/share/xsessions/xmonad.desktop at xmonad.start)"
  25. if [ ! -d ~/.xmonad ]; then
  26. ln -s "$KIT_ROOT/home/.xmonad" "$HOME/.xmonad"
  27. fi
  28. if [ ! -f ~/.xmobarrc ]; then
  29. ln -s "$KIT_ROOT/home/.xmobarrc" "$HOME/.xmobarrc"
  30. fi
  31. if [ ! -f ~/.xsettingsd ]; then
  32. ln -s "$KIT_ROOT/home/.xsettingsd" "$HOME/.xsettingsd"
  33. fi
  34. echo "~/bin"
  35. if [ ! -d ~/bin ]; then
  36. ln -s "$KIT_ROOT/home/bin" "$HOME/bin"
  37. fi
  38. echo "~/fragments"
  39. if [ ! -d ~/fragments ]; then
  40. ln -s "$KIT_ROOT/home/fragments" "$HOME/fragments"
  41. fi
  42. echo "~/cheatsheets"
  43. if [ ! -d ~/fragments ]; then
  44. ln -s "$KIT_ROOT/home/cheatsheets" "$HOME/cheatsheets"
  45. fi
  46. echo "shell setup"
  47. if [ ! -f ~/.zshrc ]; then
  48. ln -s "$KIT_ROOT/home/.zshrc" "$HOME/.zshrc"
  49. fi
  50. if [ ! -f ~/.bashrc ]; then
  51. ln -s "$KIT_ROOT/home/.bashrc" "$HOME/.bashrc"
  52. fi
  53. if [ ! -f ~/.sh_common ]; then
  54. ln -s "$KIT_ROOT/home/.sh_common" "$HOME/.sh_common"
  55. fi
  56. echo "tmux / screen setup"
  57. if [ ! -f ~/.tmux.conf ]; then
  58. ln -s "$KIT_ROOT/home/.tmux.conf" "$HOME/.tmux.conf"
  59. fi
  60. if [ ! -f ~/.screenrc ]; then
  61. ln -s "$KIT_ROOT/home/.screenrc" "$HOME/.screenrc"
  62. fi
  63. echo "git setup"
  64. if [ ! -f ~/.gitconfig ]; then
  65. ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
  66. fi
  67. echo "git setup"
  68. if [ ! -f ~/.gitconfig ]; then
  69. ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
  70. fi
  71. echo "lynx setup"
  72. if [ ! -f ~/.lynxrc ]; then
  73. ln -s "$KIT_ROOT/home/.lynxrc" "$HOME/.lynxrc"
  74. fi
  75. echo "keyboard setup (Ctrl and CapsLock swap)"
  76. sudo cp etc/default/keyboard /etc/default/keyboard