From de83f25d07f8033c024713c3203ee958bda24f87 Mon Sep 17 00:00:00 2001 From: ray Date: Sun, 23 Feb 2020 18:02:03 +0000 Subject: [PATCH] fix lf $TERMINFO issue with an alias --- aliases.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aliases.sh b/aliases.sh index d044c92..5b8b568 100644 --- a/aliases.sh +++ b/aliases.sh @@ -59,6 +59,12 @@ alias dokku='ssh -t dokku@dokku.isnet.uk' alias pacman='~/.src/archnews/archnews_wrap' alias aur-updates='trizen -Su --aur' +# lf gets confused by TERMINFO env var when running in tmux +# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665 +if [ -n "$TERMINFO" ] ; then + alias lf="TERMINFO= lf" +fi + # functions # $1 - output directory