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
2 changed files with 11 additions and 11 deletions
|
@ -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…
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue