Show different prompts when in a vm
This commit is contained in:
parent
015660d6f4
commit
fda37efc28
2 changed files with 13 additions and 1 deletions
7
.profile
7
.profile
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue