]> arthur.barton.de Git - ax-zsh.git/commitdiff
Don't enable fancy features when the terminal is "dumb"
authorAlexander Barton <alex@barton.de>
Sat, 27 Aug 2016 13:10:58 +0000 (15:10 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 27 Aug 2016 13:10:58 +0000 (15:10 +0200)
core/90_theme/90_theme.zshrc
plugins/iterm2/iterm2.zshrc

index 72e7977b00790cec83544f240f26dc697859b9eb..a6325c2ac01c234aec268632e68d184e2f605f96 100644 (file)
@@ -2,3 +2,5 @@
 # 90_theme.zshrc: Load AX-ZSH theme
 
 [[ -n "$AXZSH_THEME" ]] && source "$AXZSH_THEME"
+
+axzsh_is_dumb_terminal && unset RPS1
index 00414e376c5748d46ce23bceef8779bde53cadb5..6c022729c90dba28f52f526d11425da8afa1cfbd 100644 (file)
@@ -1,6 +1,7 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # iterm2.zshrc: iTerm2 Shell Integration
 
+axzsh_is_dumb_terminal && return
 [[ "$TERM" != "screen" && "$TERM" != "screen-256color" ]] || return
 
 ITERM2_SHOULD_DECORATE_PROMPT="1"