install_minimal_tools.sh 786 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. cloneRepo() {
  11. mkdir -p ~/src
  12. cd ~/src || return
  13. if [ ! -d "$1" ]; then
  14. git clone "$2"
  15. cd "$1" || return
  16. else
  17. cd "$1" || return
  18. git pull
  19. fi
  20. }
  21. $su apt-get -y --fix-missing install suckless-tools
  22. $su apt-get -y --fix-missing install stterm
  23. $su apt-get -y --fix-missing install --no-install-recommends cwm
  24. cd || return
  25. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.cwmrc"
  26. $su apt-get -y --fix-missing install libxft-dev libxinerama-dev
  27. cloneRepo dwm https://git.suckless.org/dwm
  28. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/src/dwm/config.h"
  29. $su make clean install