Better RGB support

This commit is contained in:
Geoffrey Frogeye 2021-07-04 11:48:00 +02:00
parent 97d8d3d0b4
commit c2d3ccb779
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 31 additions and 4 deletions

View file

@ -47,4 +47,15 @@ then
fi
ssh -t "$@" "$(cat "${CACHE_DIR}/cmd")"
# To keep until https://github.com/openssh/openssh-portable/commit/f64f8c00d158acc1359b8a096835849b23aa2e86
# is merged
function _ssh {
if [ "${TERM}" = "alacritty" ]
then
TERM=xterm-256color ssh "$@"
else
ssh "$@"
fi
}
alias ssh='_ssh'
_ssh -t "$@" "$(cat "${CACHE_DIR}/cmd")"