summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2024-12-12 21:01:09 +0100
committerMartin Fischer <martin@push-f.com>2024-12-12 21:01:09 +0100
commitecc325a8c3cf0510487988a923370e24bbc185b5 (patch)
tree99e244c645a40638b979bf5fc063e696c6b0b8ca
parent2a154ba696ace0ba57ee2e88604010b98d4e8d3b (diff)
fix(zsh): fix error on git over SSH
-rw-r--r--user/zsh/zshrc-graphical.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/user/zsh/zshrc-graphical.sh b/user/zsh/zshrc-graphical.sh
index 678448e..1e9bed7 100644
--- a/user/zsh/zshrc-graphical.sh
+++ b/user/zsh/zshrc-graphical.sh
@@ -8,7 +8,12 @@ function ssh() {
#
# Since SSH doesn't provide a way of running a command on exit, this shell
# function takes care of resetting the background color on exit.
- command ssh "$@"; reset-bg
+
+ # Note that we're setting PermitLocalCommand=yes here rather than in
+ # .ssh/config because the latter makes git over SSH fail with:
+ #
+ # fatal: protocol error: bad line length character: ?]11
+ command ssh -o PermitLocalCommand=yes "$@"; reset-bg
}
if [ $TERM = foot ]; then