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 |
- #!/bin/bash
- #
- if [[ -e $1 ]]; then
- target=`basename $1`
- if [[ $target == "root_prompt.sh" ]]; then
- target="10_$target"
- elif [[ $target == "venv_prompt.sh" ]]; then
- target="20_$target"
- elif [[ $target == "todo.sh" ]]; then
- target="90_$target"
- else
- target="50_$target"
- fi
- cd enabled
- ln -s ../$1 $target
- fi
|