2020-11-07 15:58:15 +01:00
|
|
|
# Helps navigating Sync directory
|
|
|
|
function fx(){
|
2021-01-29 14:25:45 +01:00
|
|
|
|
2020-11-07 15:58:15 +01:00
|
|
|
cd $HOME/SYNC/
|
|
|
|
|
2021-01-29 14:25:45 +01:00
|
|
|
if [ ! -d $2 ]; then
|
|
|
|
echo "dir $2 does not exists"
|
|
|
|
if read -q '?Do you want to create it (y/n)?'; then
|
|
|
|
mkdir $2
|
|
|
|
else
|
|
|
|
echo -e "\nalllrighty then, byyye"
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2020-11-07 15:58:15 +01:00
|
|
|
if [ "$2" != "" ]; then
|
|
|
|
cd $2
|
|
|
|
fi
|
|
|
|
|
2022-03-28 14:12:36 +02:00
|
|
|
if [ "$1" = "d" ]; then
|
|
|
|
dv
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$1" = "v" ]; then
|
|
|
|
nvim .
|
|
|
|
fi
|
|
|
|
|
2020-11-07 15:58:15 +01:00
|
|
|
if [ "$1" = "o" ]; then
|
|
|
|
code-insiders .
|
|
|
|
fi
|
2022-03-28 14:12:36 +02:00
|
|
|
}
|