bash/add

18 rader
405 B
Bash
Executable File

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