14 lines
271 B
Bash
Executable File
14 lines
271 B
Bash
Executable File
#!/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"
|
|
else
|
|
target="50_$target"
|
|
fi
|
|
cd enabled
|
|
ln -s ../$1 $target
|
|
fi |