From ecc325a8c3cf0510487988a923370e24bbc185b5 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 12 Dec 2024 21:01:09 +0100 Subject: fix(zsh): fix error on git over SSH --- user/zsh/zshrc-graphical.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'user/zsh/zshrc-graphical.sh') 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 -- cgit v1.2.3