Folder to easyly add some customisation to bash
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.

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