Folder to easyly add some customisation to bash
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718
  1. #!/bin/bash
  2. #
  3. if [[ -e $1 ]]; then
  4. target=`basename $1`
  5. if [[ $target == "tmux_local.sh" ]]; then
  6. target="10_$target"
  7. elif [[ $target == "root_prompt.sh" ]]; then
  8. target="20_$target"
  9. elif [[ $target == "venv_prompt.sh" ]]; then
  10. target="30_$target"
  11. elif [[ $target == "todo.sh" ]]; then
  12. target="90_$target"
  13. else
  14. target="50_$target"
  15. fi
  16. cd enabled
  17. ln -s ../$1 $target
  18. fi