Show different prompts when in a vm

This commit is contained in:
Sonny 2018-09-30 12:38:51 +02:00
parent 015660d6f4
commit fda37efc28
2 changed files with 13 additions and 1 deletions

View file

@ -5,6 +5,13 @@ export PAGER=less
export BROWSER=/usr/bin/firefox
VM=false
if [ "$(grep hypervisor /proc/cpuinfo)" ]; then
VM=true
fi
export VM
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"