diff --git a/symlinker.sh b/symlinker.sh index 6be190c..0a48af4 100755 --- a/symlinker.sh +++ b/symlinker.sh @@ -28,6 +28,20 @@ function idd(){ fi +} + +function parlink(){ + name="parlink" + linkDir="${linkDir}" + + if [ ! -f "${linkDir}/${name}" ];then + printf "\nLinking ${pwd}/${name} to ${linkDir}\n" + ln -s $(pwd)/${name}.sh ${linkDir}/${name} + else + printf "${name} already exists in ${linkDir}\n" + fi + + } function papirusIconTheme(){ @@ -95,9 +109,10 @@ case "${1}" in idd;; papirus) - papirusIconTheme + papirusIconTheme;; - ;; + parlink| parsec) + parlink;; svc ) svc;; @@ -108,7 +123,7 @@ case "${1}" in trb) trb;; - test ) + help|-h|--help ) echo ${linkDir};; * ) printf "\n${0} \n" ;;