Config File Collection
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.

add_bash 480B

1234567891011121314151617
  1. #!/bin/zsh
  2. #
  3. SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
  4. if [[ (-e ~/.bashrc.d) ]]; then
  5. echo "A bash configuration already exists (~/.bashrc.d)"
  6. echo "Remove this configuration and start the script again"
  7. else
  8. echo "Creating base link"
  9. ln -vs $SCRIPTPATH/.bashrc.d ~/.bashrc.d
  10. fi
  11. GS=`grep .bashrc.d ~/.bashrc`
  12. if [ ${#GS} -eq 0 ]; then
  13. echo "Adding execution of scripts in ~.bashrc.d"
  14. cat ~/.bashrc.d/BASHRC_ADDON >> ~/.bashrc
  15. fi