From e0aadfa499c7acc83961da01335c813209d0609d Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Wed, 16 Jul 2025 09:57:55 +0200 Subject: [PATCH] zshrc: Add alias to exit muxed ssh sessions --- templates/_zshrc.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/_zshrc.j2 b/templates/_zshrc.j2 index c02a05a..83cad88 100644 --- a/templates/_zshrc.j2 +++ b/templates/_zshrc.j2 @@ -100,6 +100,8 @@ alias rsync-move="rsync -avz --info=progress2 -h --remove-source-files" alias rsync-update="rsync -avzu --info=progress2 --partial -h" alias rsync-synchronize="rsync -avzu --delete --info=progress2 --partial -h" +alias ssh-exit="ssh -O exit" + # stolen from: https://eldritch.cafe/@lexi/103707492979358755 alias doch='sudo sh -c "$(fc -n -l -- -1)"'