From 6bd55f01c0cce3d74ac66a6167b658df0c98d048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Neumann?= Date: Fri, 12 Oct 2012 16:40:44 +0200 Subject: Added some logic to automatically fix terminfo --- .zsh/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.zsh/zshrc') 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. -- cgit v1.2.3