Created
April 24, 2022 13:04
-
-
Save jamespo/ebbfc7092b73ee09d056661d44b67e7d to your computer and use it in GitHub Desktop.
Shell function & alias to stop foot terminal confusing ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
footssh() | |
{ | |
if [[ $TERM = "foot" ]]; then | |
TERM=linux ssh $@ | |
else | |
ssh $@ | |
fi | |
} | |
alias ssh=footssh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simpler: