bash/add

14 lines
271 B
Plaintext
Raw Normal View History

2020-01-26 17:20:02 +01:00
#!/bin/bash
#
if [[ -e $1 ]]; then
target=`basename $1`
2020-02-15 16:32:34 +01:00
if [[ $target == "root_prompt.sh" ]]; then
2020-01-26 17:20:02 +01:00
target="10_$target"
2020-02-15 16:32:34 +01:00
elif [[ $target == "venv_prompt.sh" ]]; then
target="20_$target"
2020-01-26 17:20:02 +01:00
else
target="50_$target"
fi
cd enabled
ln -s ../$1 $target
fi