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.

37 lines
973 B

  1. #!/usr/bin/ENV sh
  2. set -x
  3. set -e
  4. ENV=/usr/bin/ENV
  5. PM_UPDATE=$PWD
  6. PM_UPDATE="sudo dnf"
  7. PM_UPDATE="$PM_UPDATE update"
  8. PM_INSTALL="$PM_UPDATE install"
  9. SCRIPT=$(readlink -f "$0")
  10. SCRIPTPATH=$(dirname "$SCRIPT")
  11. cd $HOME
  12. # Install the minimal toolset to bootstrap out process
  13. $PM_UPDATE -y
  14. # System basics for everything after this point
  15. $PM_INSTALL curl wget git zsh vim tmux mosh -y
  16. # Enabled rpmfusion repositories
  17. sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  18. $PM_UPDATE -y
  19. # Install OhMyZSH
  20. mkdir -p $HOME/build/oh-my-zsh
  21. cd $HOME/build/oh-my-zsh
  22. curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o install.sh
  23. chmod +x install.sh
  24. $ENV sh install.sh
  25. cd $HOME
  26. # Install Timeshift
  27. $SCRIPTPATH/install_timeshift.sh
  28. # Return to where we started
  29. cd $PM_UPDATE