get_personal_backup_files.sh 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. $su apt-get -y --fix-missing install curl
  11. cd || return
  12. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.xinitrc"
  13. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.Xresources"
  14. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.Xdefaults"
  15. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.bashrc"
  16. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.bash_profile"
  17. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.bash_aliases"
  18. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.tmux.conf"
  19. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.cwmrc"
  20. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.vimrc"
  21. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.rtorrent.rc"
  22. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.xbindkeysrc"
  23. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/devuan/.picom.conf"
  24. mkdir -p ~/.prboom-plus/ && cd ~/.prboom-plus/ || return
  25. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.prboom-plus/prboom-plus.cfg"
  26. cd || return
  27. mkdir -p "$HOME"/.dosbox/ && cd "$HOME"/.dosbox/ || return
  28. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.dosbox/dosbox-0.74-3.conf"
  29. cd || return
  30. mkdir -p ~/.config/gzdoom/ && cd ~/.config/gzdoom/ || return
  31. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/gzdoom/gzdoom.ini"
  32. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/gzdoom/gzdoom_chex.ini"
  33. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/gzdoom/gzdoom_chex_mouseonly.ini"
  34. cd || return
  35. mkdir -p ~/.config/i3/ && cd ~/.config/i3/ || return
  36. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/i3/config"
  37. cd || return
  38. mkdir -p ~/.config/i3status/ && cd ~/.config/i3status/ || return
  39. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/i3status/config"
  40. cd || return
  41. mkdir -p ~/.config/mc/ && cd ~/.config/mc/ || return
  42. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/mc/hotlist"
  43. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/mc/ini"
  44. cd || return
  45. mkdir -p ~/.config/mpv/ && cd ~/.config/mpv/ || return
  46. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/mpv/input.conf"
  47. curl -OL "https://notabug.org/lea2501/dotfiles/raw/main/.config/mpv/mpv.conf"
  48. cd || return
  49. mkdir -p ~/.config/geany/colorschemes/ && cd ~/.config/geany/colorschemes/ || return
  50. curl -OL "https://raw.github.com/geany/geany-themes/master/colorschemes/bespin.conf"
  51. cd || return