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.

1234567891011121314
  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. else
  10. target="50_$target"
  11. fi
  12. cd enabled
  13. ln -s ../$1 $target
  14. fi