From 29f72b1cdd97ced456561b61a9939e0f93376785 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire Date: Sat, 15 Jan 2022 12:02:50 -0300 Subject: [PATCH] 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. --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index a665da1..09afc54 100644 --- a/.zshrc +++ b/.zshrc @@ -60,6 +60,8 @@ alias locate="plocate" # Alias to nsxiv with some flags alias nsxiv="nsxiv -a" +alias ssh="TERM=xterm-256color ssh" + # Alias to ip with some flags alias ip="ip --color=always"