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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 pandoc dnsutils
  11. echo 'installing perl dependencies'
  12. sudo cpan -i Module::Build App::WRT
  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. # shellcheck disable=SC2088
  37. echo '~/bin'
  38. if [ ! -d ~/bin ]; then
  39. ln -s "$KIT_ROOT/home/bin" "$HOME/bin"
  40. fi
  41. # shellcheck disable=SC2088
  42. echo '~/fragments'
  43. if [ ! -d ~/fragments ]; then
  44. ln -s "$KIT_ROOT/home/fragments" "$HOME/fragments"
  45. fi
  46. # shellcheck disable=SC2088
  47. echo '~/cheatsheets'
  48. if [ ! -d ~/cheatsheets ]; then
  49. ln -s "$KIT_ROOT/home/cheatsheets" "$HOME/cheatsheets"
  50. fi
  51. echo 'shell setup'
  52. if [ ! -f ~/.zshrc ]; then
  53. ln -s "$KIT_ROOT/home/.zshrc" "$HOME/.zshrc"
  54. fi
  55. if [ ! -f ~/.bashrc ]; then
  56. ln -s "$KIT_ROOT/home/.bashrc" "$HOME/.bashrc"
  57. fi
  58. if [ ! -f ~/.sh_common ]; then
  59. ln -s "$KIT_ROOT/home/.sh_common" "$HOME/.sh_common"
  60. fi
  61. echo 'tmux / screen setup'
  62. if [ ! -f ~/.tmux.conf ]; then
  63. ln -s "$KIT_ROOT/home/.tmux.conf" "$HOME/.tmux.conf"
  64. fi
  65. if [ ! -f ~/.screenrc ]; then
  66. ln -s "$KIT_ROOT/home/.screenrc" "$HOME/.screenrc"
  67. fi
  68. echo 'git setup'
  69. if [ ! -f ~/.gitconfig ]; then
  70. ln -s "$KIT_ROOT/home/.gitconfig" "$HOME/.gitconfig"
  71. fi
  72. echo 'lynx setup'
  73. if [ ! -f ~/.lynxrc ]; then
  74. ln -s "$KIT_ROOT/home/.lynxrc" "$HOME/.lynxrc"
  75. fi
  76. echo 'keyboard setup (Ctrl and CapsLock swap)'
  77. sudo cp etc/default/keyboard /etc/default/keyboard
  78. echo 'Remember to:'
  79. echo ' - install commandlog from https://code.p1k3.com/gitea/brennen/commandlog'
  80. echo ' - chsh'