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.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. fzf xclip xautolock pngphoon tree scrot
  11. echo "installing perl dependencies"
  12. sudo cpan -i Module::Build
  13. echo "vim setup"
  14. mkdir -p ~/.vim/bundle
  15. if [ ! -f ~/.vimrc ]; then
  16. ln -s "$KIT_ROOT/home/.vimrc" "$HOME/.vimrc"
  17. fi
  18. if [ ! -f ~/.gvimrc ]; then
  19. ln -s "$KIT_ROOT/home/.gvimrc" "$HOME/.gvimrc"
  20. fi
  21. if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
  22. git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/Vundle.vim
  23. fi
  24. vim +PluginInstall
  25. echo "xmonad setup"
  26. echo "(don't forget to point /usr/share/xsessions/xmonad.desktop at xmonad.start)"
  27. if [ ! -d ~/.xmonad ]; then
  28. ln -s "$KIT_ROOT/home/.xmonad" "$HOME/.xmonad"
  29. fi
  30. if [ ! -f ~/.xmobarrc ]; then
  31. ln -s "$KIT_ROOT/home/.xmobarrc" "$HOME/.xmobarrc"
  32. fi
  33. if [ ! -f ~/.xsettingsd ]; then
  34. ln -s "$KIT_ROOT/home/.xsettingsd" "$HOME/.xsettingsd"
  35. fi
  36. echo "~/bin"
  37. if [ ! -d ~/bin ]; then
  38. ln -s "$KIT_ROOT/home/bin" "$HOME/bin"
  39. fi
  40. echo "~/fragments"
  41. if [ ! -d ~/fragments ]; then
  42. ln -s "$KIT_ROOT/home/fragments" "$HOME/fragments"
  43. fi
  44. echo "~/cheatsheets"
  45. if [ ! -d ~/cheatsheets ]; then
  46. ln -s "$KIT_ROOT/home/cheatsheets" "$HOME/cheatsheets"
  47. fi
  48. echo "shell setup"
  49. if [ ! -f ~/.zshrc ]; then
  50. ln -s "$KIT_ROOT/home/.zshrc" "$HOME/.zshrc"
  51. fi
  52. if [ ! -f ~/.bashrc ]; then
  53. ln -s "$KIT_ROOT/home/.bashrc" "$HOME/.bashrc"
  54. fi
  55. if [ ! -f ~/.sh_common ]; then
  56. ln -s "$KIT_ROOT/home/.sh_common" "$HOME/.sh_common"
  57. fi
  58. echo "tmux / screen setup"
  59. if [ ! -f ~/.tmux.conf ]; then
  60. ln -s "$KIT_ROOT/home/.tmux.conf" "$HOME/.tmux.conf"
  61. fi
  62. if [ ! -f ~/.screenrc ]; then
  63. ln -s "$KIT_ROOT/home/.screenrc" "$HOME/.screenrc"
  64. fi
  65. echo "git setup"
  66. if [ ! -f ~/.gitconfig ]; then
  67. ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
  68. fi
  69. echo "lynx setup"
  70. if [ ! -f ~/.lynxrc ]; then
  71. ln -s "$KIT_ROOT/home/.lynxrc" "$HOME/.lynxrc"
  72. fi
  73. echo "keyboard setup (Ctrl and CapsLock swap)"
  74. sudo cp etc/default/keyboard /etc/default/keyboard
  75. echo "Remember to:"
  76. echo " - install commandlog from https://code.p1k3.com/gitea/brennen/commandlog"
  77. echo " - chsh"