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.

96 lines
2.6 KiB

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