]> arthur.barton.de Git - ax-zsh.git/commit
Fix handling of legacy terminal types
authorAlexander Barton <alex@barton.de>
Mon, 22 Apr 2019 15:38:33 +0000 (17:38 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 22 Apr 2019 15:38:33 +0000 (17:38 +0200)
commit602d2931b1cd78bbfb75a4e1fd8de7e6a8553689
tree068e82e964d9d76e2c623ed8ae86e39a53da7f44
parent0acee783038cd38d42ab1fa1f853bef3faecd463
Fix handling of legacy terminal types

Disable plugins/code requiring current terminal features not only on
"dumb" terminals, but on legacy ("not modern") terminals, too. This is
handled by using the axzsh_is_modern_terminal() function insetad of
axzsh_is_dumb_terminal().

And fix plugins to return 91 ("ignore") as result code in this case.

In addition, disable theming only on dumb terminals (as before), but
fall back to the standard "ax" theme on non-modern terminals, too!
ax.zsh
core/11_terminal/11_terminal.zshrc
core/90_theme/90_theme.zshrc
plugins/fzf/fzf.zshrc
plugins/iterm2/iterm2.zshrc
plugins/powerline-shell/powerline-shell.zshrc
plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc
plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc