From ceb1e409646a381b9d6440b61b9d5016bbf20e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Mon, 19 Oct 2020 12:58:26 +0200 Subject: [PATCH] Using xterm-256color as TERM Alacritty seems fully compatible with that and older servers know those so no need to transfer the terminfo. --- config/alacritty/alacritty.yml.j2 | 4 ++-- config/scripts/bsh | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/alacritty/alacritty.yml.j2 b/config/alacritty/alacritty.yml.j2 index 0c795cf..6508228 100644 --- a/config/alacritty/alacritty.yml.j2 +++ b/config/alacritty/alacritty.yml.j2 @@ -4,14 +4,14 @@ # Any items in the `env` entry below will be added as # environment variables. Some entries may override variables # set by alacritty itself. -#env: +env: # TERM variable # # This value is used to set the `$TERM` environment variable for # each instance of Alacritty. If it is not present, alacritty will # check the local terminfo database and use `alacritty` if it is # available, otherwise `xterm-256color` is used. - #TERM: alacritty + TERM: xterm-256color window: # Window dimensions (changes require restart) diff --git a/config/scripts/bsh b/config/scripts/bsh index 27789fc..875429e 100755 --- a/config/scripts/bsh +++ b/config/scripts/bsh @@ -19,19 +19,19 @@ then grep -o '^[^#]*' ~/.config/shell/trimmed.bash > "${WORK}/.bashrc" grep -o '^[^#]*' ~/.config/inputrc > "${WORK}/.inputrc" grep -o '^[^"]*' ~/.config/vim/vimconfig.vim > "${WORK}/.vimrc" - mkdir -p "${WORK}/terminfo/${TERM:0:1}" - if [ -f "/usr/share/terminfo/${TERM:0:1}/${TERM}" ] - then - cp "/usr/share/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}" - elif [ -f "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" ] - then - cp "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}" - fi + #mkdir -p "${WORK}/terminfo/${TERM:0:1}" + #if [ -f "/usr/share/terminfo/${TERM:0:1}/${TERM}" ] + #then + # cp "/usr/share/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}" + #elif [ -f "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" ] + #then + # cp "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}" + #fi # Extra configuration echo "alias s='sudo -s -E bash --rcfile ${DEST}/.bashrc'" >> "${WORK}/.bashrc" echo "export VIMINIT='source ${DEST}/.vimrc'" >> "${WORK}/.bashrc" - echo "export TERMINFO=${DEST}/terminfo" >> "${WORK}/.bashrc" + #echo "export TERMINFO=${DEST}/terminfo" >> "${WORK}/.bashrc" echo "export INPUTRC=${DEST}/.inputrc" >> "${WORK}/.bashrc" # TODO Maybe we should just set HOME thereā€¦