Config File Collection
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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