symlinker.sh: Add parlink
This commit is contained in:
parent
9dcc4197b2
commit
fbaae134f5
21
symlinker.sh
21
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} <command>\n"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user