Don't overwrite TERM in containers (#2027)

Don't overwrite $TERM env-var in container images, the terminal (provided by dockerd or whatever) will set it correctly. the current setting causes issues in e.g. vim where some operations (like ctrl+left/ctrl+right) completely butcher the file being edited.
This commit is contained in:
Andy Caldwell 2022-01-29 02:47:03 +00:00 committed by GitHub
parent dc643b4729
commit 098841f2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -17,9 +17,9 @@
],
"PostInstallScripts": [
{
"Path": "postinstallscripts/core-container/cleanup-and-set-term.sh"
"Path": "postinstallscripts/core-container/cleanup.sh"
}
]
}
]
}
}

View File

@ -4,5 +4,3 @@ rm -rf /boot/*
rm -rf /usr/src/
rm -rf /home/*
rm -rf /var/log/*
# set TERM to linux
echo "export TERM=linux" >> /etc/bash.bashrc