dotfiles.sh 751 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. echo -e '\033[35m
  3. ____ __ _______ __
  4. / __ \____ / /_ / ____(_) /__ _____
  5. / / / / __ \/ __/ / /_ / / / _ \/ ___/
  6. / /_/ / /_/ / /_ / __/ / / / __(__ )
  7. /_____/\____/\__/ /_/ /_/_/\___/____/
  8. \033[0m'
  9. #installing better prompt and some goodies
  10. echo -e "\033[35;1mInstalling shell prompt for current user $USER \033[0m"
  11. sleep 2
  12. # get the current position
  13. _cwd="$(pwd)"
  14. # go to user home
  15. cd
  16. echo "cloning https://figureslibres.io/gogs/bachir/dotfiles-server.git"
  17. git clone https://figureslibres.io/gogs/bachir/dotfiles-server.git ~/.dotfiles-server && cd ~/.dotfiles-server && ./install.sh && cd ~
  18. source ~/.bashrc
  19. # return to working directory
  20. cd "$_cwd"
  21. echo -e "\033[92;1mDot files installed for $USER\033[0m"