From 2df66474db0b6b15277869b480d60a09e4c1b19f Mon Sep 17 00:00:00 2001 From: don philipe Date: Thu, 4 Sep 2025 04:51:08 +0200 Subject: [PATCH] Merge zsh functions --- .zsh-custom/functions.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zsh-custom/functions.zsh b/.zsh-custom/functions.zsh index 9cedf83..896c636 100644 --- a/.zsh-custom/functions.zsh +++ b/.zsh-custom/functions.zsh @@ -71,6 +71,14 @@ git-blobs() $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest } +sshs() +{ + tmprc=$(ssh $1 "mktemp --directory") + scp -q $HOME/.zshrc $1:$tmprc + ssh -t $1 "export ZDOTDIR=${tmprc}; exec zsh" + ssh $1 "rm -rf ${tmprc}" +} + # show the current mode: #PR_VIMODE="#" #function zle-keymap-select