From fbaae134f5d2f581060470d83e1b6332e9715962 Mon Sep 17 00:00:00 2001 From: mollusk Date: Sun, 10 Nov 2019 03:26:02 -0700 Subject: [PATCH] symlinker.sh: Add parlink --- symlinker.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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" ;;