From ff49c88bec023355af49e4ec7bc1037fde463693 Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Mon, 30 Sep 2024 23:15:22 +0530 Subject: Update nvim config --- .zfunc/set-title | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to '.zfunc/set-title') diff --git a/.zfunc/set-title b/.zfunc/set-title index ae46b5a..cba1aeb 100644 --- a/.zfunc/set-title +++ b/.zfunc/set-title @@ -1,10 +1,12 @@ #!zsh emulate -L zsh -if tput hs +zmodload zsh/terminfo + +if [[ $teminfo[hs] == "yes" ]] then - tsl="$(tput tsl)" - fsl="$(tput fsl)" + tsl="$terminfo[tsl]" + fsl="$terminfo[fsl]" hs=1 else case ${TERM} in @@ -21,7 +23,7 @@ else esac fi -if test "$hs" = 1 +if [[ "$hs" == 1 ]] then printf "%s" "$tsl" printf "%s" "$@" -- cgit v1.2.3-70-g09d2