Using xterm-256color as TERM
Alacritty seems fully compatible with that and older servers know those so no need to transfer the terminfo.
This commit is contained in:
parent
4025f55f44
commit
ceb1e40964
|
@ -4,14 +4,14 @@
|
||||||
# Any items in the `env` entry below will be added as
|
# Any items in the `env` entry below will be added as
|
||||||
# environment variables. Some entries may override variables
|
# environment variables. Some entries may override variables
|
||||||
# set by alacritty itself.
|
# set by alacritty itself.
|
||||||
#env:
|
env:
|
||||||
# TERM variable
|
# TERM variable
|
||||||
#
|
#
|
||||||
# This value is used to set the `$TERM` environment variable for
|
# This value is used to set the `$TERM` environment variable for
|
||||||
# each instance of Alacritty. If it is not present, alacritty will
|
# each instance of Alacritty. If it is not present, alacritty will
|
||||||
# check the local terminfo database and use `alacritty` if it is
|
# check the local terminfo database and use `alacritty` if it is
|
||||||
# available, otherwise `xterm-256color` is used.
|
# available, otherwise `xterm-256color` is used.
|
||||||
#TERM: alacritty
|
TERM: xterm-256color
|
||||||
|
|
||||||
window:
|
window:
|
||||||
# Window dimensions (changes require restart)
|
# Window dimensions (changes require restart)
|
||||||
|
|
|
@ -19,19 +19,19 @@ then
|
||||||
grep -o '^[^#]*' ~/.config/shell/trimmed.bash > "${WORK}/.bashrc"
|
grep -o '^[^#]*' ~/.config/shell/trimmed.bash > "${WORK}/.bashrc"
|
||||||
grep -o '^[^#]*' ~/.config/inputrc > "${WORK}/.inputrc"
|
grep -o '^[^#]*' ~/.config/inputrc > "${WORK}/.inputrc"
|
||||||
grep -o '^[^"]*' ~/.config/vim/vimconfig.vim > "${WORK}/.vimrc"
|
grep -o '^[^"]*' ~/.config/vim/vimconfig.vim > "${WORK}/.vimrc"
|
||||||
mkdir -p "${WORK}/terminfo/${TERM:0:1}"
|
#mkdir -p "${WORK}/terminfo/${TERM:0:1}"
|
||||||
if [ -f "/usr/share/terminfo/${TERM:0:1}/${TERM}" ]
|
#if [ -f "/usr/share/terminfo/${TERM:0:1}/${TERM}" ]
|
||||||
then
|
#then
|
||||||
cp "/usr/share/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}"
|
# cp "/usr/share/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}"
|
||||||
elif [ -f "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" ]
|
#elif [ -f "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" ]
|
||||||
then
|
#then
|
||||||
cp "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}"
|
# cp "$HOME/.config/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Extra configuration
|
# Extra configuration
|
||||||
echo "alias s='sudo -s -E bash --rcfile ${DEST}/.bashrc'" >> "${WORK}/.bashrc"
|
echo "alias s='sudo -s -E bash --rcfile ${DEST}/.bashrc'" >> "${WORK}/.bashrc"
|
||||||
echo "export VIMINIT='source ${DEST}/.vimrc'" >> "${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"
|
echo "export INPUTRC=${DEST}/.inputrc" >> "${WORK}/.bashrc"
|
||||||
# TODO Maybe we should just set HOME there…
|
# TODO Maybe we should just set HOME there…
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue