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