symlinker.sh: Add parlink

This commit is contained in:
mollusk 2019-11-10 03:26:02 -07:00
parent 9dcc4197b2
commit fbaae134f5

View File

@ -28,6 +28,20 @@ function idd(){
fi 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(){ function papirusIconTheme(){
@ -95,9 +109,10 @@ case "${1}" in
idd;; idd;;
papirus) papirus)
papirusIconTheme papirusIconTheme;;
;; parlink| parsec)
parlink;;
svc ) svc )
svc;; svc;;
@ -108,7 +123,7 @@ case "${1}" in
trb) trb)
trb;; trb;;
test ) help|-h|--help )
echo ${linkDir};; echo ${linkDir};;
* ) printf "\n${0} <command>\n" * ) printf "\n${0} <command>\n"
;; ;;