Skip to content

Commit

Permalink
Fix ssh to not infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
calebhearth committed Aug 30, 2024
1 parent 035591b commit 0d517d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kitty/bin/ssh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
#!/bin/zsh

if [ -n "$KITTY_PID" ] && command -v kitty 2>&1 > /dev/null; then
kitty +kitten ssh $*
if [[ $- == *i* ]] && [ -n "$KITTY_PID" ] && command -v kitty 2>&1 > /dev/null; then
PATH=${PATH/~\/bin:} kitty +kitten ssh $*
else
command ssh $*
PATH=${PATH/~\/bin:} ssh $*
fi

0 comments on commit 0d517d2

Please sign in to comment.