Only set TERM for sudo when on iterm or kitty
parent
e6d868ba3c
commit
a4a3091ae7
8
.zshrc
8
.zshrc
|
@ -99,10 +99,12 @@ setup_term_integration
|
||||||
|
|
||||||
# term fixes
|
# term fixes
|
||||||
|
|
||||||
alias sudo="sudo TERM=xterm-256color"
|
if [[ "$TERM" == "xterm-kitty" ]] || [[ "$TERM" == "xterm-iterm" ]]; then
|
||||||
term_color() {
|
alias sudo="sudo TERM=xterm-256color"
|
||||||
|
term_color() {
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# completion
|
# completion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue