themeing and vars

This commit is contained in:
2024-07-19 18:06:25 +02:00
parent 541000e0a1
commit 4cf0a287c7
13 changed files with 172 additions and 4 deletions

17
.local/bin/rmount Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/zsh
remote="dummy"
case $1 in
"c2yz.com") remote="c2yz";;
"eu.c2yz.com") remote="c2yz-eu";;
"thor.c2yz.com" || "192.168.0.11" || "192.168.0.12") remote="thor";;
"home.c2yz.com" || "192.168.0.200") remote "home";;
*) remote=$(echo $1 | tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]')
esac
echo "Mounting $1 to: $HOME/remotes/$remote";
mkdir -p $HOME/remotes/$remote;
sshfs -o idmap=user $USER@$1:/home/$USER $HOME/remotes/$remote