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.

54 lines
1.1 KiB

  1. #!/usr/bin/ENV sh
  2. set -x
  3. set -e
  4. ENV=/usr/bin/ENV
  5. OPWD=$PWD
  6. PACKAGE_MANAGER="sudo pacman"
  7. PM_UPDATE="$PACKAGE_MANAGER -Syu"
  8. PM_INSTALL="$PACKAGE_MANAGER -S"
  9. SCRIPT=$(readlink -f "$0")
  10. SCRIPTPATH=$(dirname "$SCRIPT")
  11. cd $HOME
  12. # Install the minimal toolset to bootstrap out process
  13. $PM_UPDATE
  14. # Install the development requirements so we can use aur packages
  15. $PM_INSTALL --needed base-devel
  16. # System basics for everything after this point
  17. $PM_INSTALL curl wget git zsh vim tmux openssh mosh
  18. # Install OhMyZSH
  19. mkdir -p $HOME/build/oh-my-zsh
  20. cd $HOME/build/oh-my-zsh
  21. curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh
  22. chmod +x install.sh
  23. $ENV sh install.sh
  24. cd $HOME
  25. # Install package-query for yaourt
  26. cd $HOME/build
  27. git clone https://aur.archlinux.org/package-query.git
  28. cd package-query
  29. makepkg -sri
  30. # Install yaourt
  31. cd $HOME/build
  32. git clone https://aur.archlinux.org/yaourt.git
  33. cd yaourt
  34. makepkg -sri
  35. # Do a proper update including aur
  36. cd $HOME
  37. yaourt -Syua
  38. # Install Other Essential Tools
  39. yaourt -S lsb-release screenfetch
  40. # Install Timeshift
  41. $SCRIPTPATH/install_timeshift.sh
  42. # Return to where we started
  43. cd $OPWD