Skip to content

Instantly share code, notes, and snippets.

@jamespo
Created Apr 24, 2022
Embed
What would you like to do?
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