diff options
author | Martin Fischer <martin@push-f.com> | 2024-12-12 21:01:09 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2024-12-12 21:01:09 +0100 |
commit | ecc325a8c3cf0510487988a923370e24bbc185b5 (patch) | |
tree | 99e244c645a40638b979bf5fc063e696c6b0b8ca /user | |
parent | 2a154ba696ace0ba57ee2e88604010b98d4e8d3b (diff) |
fix(zsh): fix error on git over SSH
Diffstat (limited to 'user')
-rw-r--r-- | user/zsh/zshrc-graphical.sh | 7 |
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 |