1
0
Fork 0

Only set TERM for sudo when on iterm or kitty

main
Ambrose Chua 2021-03-16 17:53:53 +08:00
parent e6d868ba3c
commit a4a3091ae7
1 changed files with 6 additions and 4 deletions

10
.zshrc
View File

@ -99,10 +99,12 @@ setup_term_integration
# term fixes
alias sudo="sudo TERM=xterm-256color"
term_color() {
export TERM=xterm-256color
}
if [[ "$TERM" == "xterm-kitty" ]] || [[ "$TERM" == "xterm-iterm" ]]; then
alias sudo="sudo TERM=xterm-256color"
term_color() {
export TERM=xterm-256color
}
fi
# completion