fix mac
This commit is contained in:
@@ -27,6 +27,14 @@ end
|
||||
|
||||
status is-interactive; and begin
|
||||
|
||||
# On macOS SSH sessions, normalize TERM if remote terminfo is missing
|
||||
# (eg. TERM=alacritty from Linux host), otherwise tools like jj/less warn
|
||||
if test (uname) = Darwin; and set -q SSH_TTY
|
||||
if not infocmp "$TERM" >/dev/null 2>&1
|
||||
set -gx TERM xterm-256color
|
||||
end
|
||||
end
|
||||
|
||||
# Abbreviations
|
||||
abbr -a tx 'tmux'
|
||||
abbr -a txa 'tmux attach'
|
||||
|
||||
Reference in New Issue
Block a user