dotfiles.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. echo '
  3. ___ _ ___ _ _
  4. | \ ___| |_| __(_) |___ ___
  5. | |) / _ \ _| _|| | / -_|_-<
  6. |___/\___/\__|_| |_|_\___/__/
  7. '
  8. #installing better prompt and some goodies
  9. echo "Installing shell prompt for current user $USER "
  10. sleep 2
  11. #
  12. # # get the current position
  13. # _cwd="$(pwd)"
  14. #
  15. # # check for assets forlder
  16. # _assets="$_cwd/assets"
  17. # if [ ! -d "$_assets" ]; then
  18. # _assets="$_cwd/../assets"
  19. # if [ ! -d "$_assets" ]; then
  20. # echo "!! can't find assets directory !!"
  21. # exit
  22. # fi
  23. # fi
  24. #
  25. # cp "$_assets"/dotfiles/.vimrc /home/"$USER"/
  26. # cp -r "$_assets"/dotfiles/.vim /home/"$USER"/
  27. #
  28. # cp "$_assets"/dotfiles/.inputrc /home/"$USER"/
  29. # get the current position
  30. _cwd="$(pwd)"
  31. # go to user home
  32. cd
  33. echo "cloning https://figureslibres.io/gogs/bachir/dotfiles-server.git"
  34. git clone https://figureslibres.io/gogs/bachir/dotfiles-server.git ~/.dotfiles-server && cd ~/.dotfiles-server && ./install.sh && cd ~
  35. source ~/.bashrc
  36. # return to working directory
  37. cd "$_cwd"
  38. echo "Dot files installed for $USER"