Skip to content

Instantly share code, notes, and snippets.

@jamespo
Created April 24, 2022 13:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamespo/ebbfc7092b73ee09d056661d44b67e7d to your computer and use it in GitHub Desktop.
Save jamespo/ebbfc7092b73ee09d056661d44b67e7d to your computer and use it in GitHub Desktop.
Shell function & alias to stop foot terminal confusing ssh
footssh()
{
if [[ $TERM = "foot" ]]; then
TERM=linux ssh $@
else
ssh $@
fi
}
alias ssh=footssh
@treyssatvincent
Copy link

treyssatvincent commented Sep 11, 2022

Thanks !

@Leonetienne
Copy link

T. Hanks a lot!

@mildred
Copy link

mildred commented Jan 2, 2023

Simpler:

if [[ $TERM = "foot" ]]; then
  alias ssh='TERM=linux ssh'
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment