summaryrefslogtreecommitdiff
path: root/.zsh/zshrc
diff options
context:
space:
mode:
authorRené Neumann <rene.neumann@in.tum.de>2012-10-12 16:40:44 +0200
committerRené Neumann <rene.neumann@in.tum.de>2012-10-12 16:40:44 +0200
commit6bd55f01c0cce3d74ac66a6167b658df0c98d048 (patch)
tree9ae3ad45e289c7923852f1c1800a94746f58bd20 /.zsh/zshrc
parent85d60e4c27afedaed0731481dc4167ce06c5c70b (diff)
downloaddotfiles-6bd55f01c0cce3d74ac66a6167b658df0c98d048.tar.gz
dotfiles-6bd55f01c0cce3d74ac66a6167b658df0c98d048.tar.bz2
dotfiles-6bd55f01c0cce3d74ac66a6167b658df0c98d048.zip
Added some logic to automatically fix terminfo
Diffstat (limited to '.zsh/zshrc')
-rw-r--r--.zsh/zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.zsh/zshrc b/.zsh/zshrc
index 5a59e27..82460e9 100644
--- a/.zsh/zshrc
+++ b/.zsh/zshrc
@@ -79,6 +79,12 @@ source ~/.zsh/zshfunctions
# }}}
+# Make sure term capabilities are existing
+if whence infocmp tic NOE && ! infocmp NOE; then
+ fix_terminfo
+ TERM=$TERM # this forces a reinit
+fi
+
# Test for an interactive shell {{{
# There is no need to set anything past this point for scp and rcp,
# and it's important to refrain from outputting anything in those cases.