zsh: alias ssh to use TERM=xterm-256color env

for some reason alacritty (my terminal emulator) is not recognized when
I try to ssh in some other machine, causing somethings to not work (like
the `clear` command for example).

This env variable tricks the remote system to think I am using other
terminal emulator. Probably not the best solution, but it is working
just fine until now.
This commit is contained in:
Guilherme Rugai Freire 2022-01-15 12:02:50 -03:00
parent 97c03f2012
commit 29f72b1cdd
No known key found for this signature in database
GPG Key ID: FC05BE5CD322C427

2
.zshrc
View File

@ -60,6 +60,8 @@ alias locate="plocate"
# Alias to nsxiv with some flags # Alias to nsxiv with some flags
alias nsxiv="nsxiv -a" alias nsxiv="nsxiv -a"
alias ssh="TERM=xterm-256color ssh"
# Alias to ip with some flags # Alias to ip with some flags
alias ip="ip --color=always" alias ip="ip --color=always"