1
0
Fork 0

Fix terminfo path

This commit is contained in:
tastytea 2022-05-01 09:03:55 +02:00
parent 910ac330d5
commit 00fa0a0b1f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ fi
# emacsclient 27 (TODO: check later versions) needs this for TrueColor
if [[ ${TERM#*-} == "256color" ]] \
&& [[ ${COLORTERM} == *(truecolor|24bit)* ]] \
&& [[ -f "/usr/share/terminfo/t/${TERM%-*}-direct" ]]; then
&& [[ -f "/usr/share/terminfo/${TERM[1]}/${TERM%-*}-direct" ]]; then
alias $(command -v emacsclient)="TERM=${TERM%-*}-direct $(command -v emacsclient)"
alias $(command -v emacsremote)="TERM=${TERM%-*}-direct $(command -v emacsremote)"
fi