Folder to easyly add some customisation to bash
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516
  1. #!/bin/bash
  2. #
  3. if [[ -e $1 ]]; then
  4. target=`basename $1`
  5. if [[ $target == "root_prompt.sh" ]]; then
  6. target="10_$target"
  7. elif [[ $target == "venv_prompt.sh" ]]; then
  8. target="20_$target"
  9. elif [[ $target == "todo.sh" ]]; then
  10. target="90_$target"
  11. else
  12. target="50_$target"
  13. fi
  14. cd enabled
  15. ln -s ../$1 $target
  16. fi