bash/add
2020-02-15 16:32:34 +01:00

14 行
271 B
Bash
可执行文件

#!/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