Skip to content

Instantly share code, notes, and snippets.

@jamespo
Created April 24, 2022 13:04
Show Gist options
  • 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
@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