This commit is contained in:
Geoffrey Frogeye 2020-09-24 10:47:35 +02:00
parent d3849148cb
commit 78bbd1b44d
5 changed files with 17 additions and 207 deletions

View file

@ -20,7 +20,13 @@ then
grep -o '^[^#]*' ~/.config/inputrc > "${WORK}/.inputrc"
grep -o '^[^"]*' ~/.config/vim/vimconfig.vim > "${WORK}/.vimrc"
mkdir -p "${WORK}/terminfo/${TERM:0:1}"
cp ~/".config/terminfo/${TERM:0:1}/${TERM}" "${WORK}/terminfo/${TERM:0:1}/${TERM}"
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"