Only set TERM for sudo when on iterm or kitty
parent
e6d868ba3c
commit
a4a3091ae7
10
.zshrc
10
.zshrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue