Updates Work laptop
This commit is contained in:
parent
fb8b1d7951
commit
7057d68410
6 changed files with 19 additions and 2 deletions
13
.config/terminal/alias.sh##class.Work
Normal file
13
.config/terminal/alias.sh##class.Work
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/env sh
|
||||
|
||||
# eve helper
|
||||
function eve() {
|
||||
local eveVMPath="${HOME}/vagrant"
|
||||
if [ "${*}" = "ssh" ]; then
|
||||
local status=$(cd $eveVMPath && vagrant status)
|
||||
if [[ ! "$status" == *"The VM is running."* ]]; then
|
||||
( cd $eveVMPath && vagrant up )
|
||||
fi
|
||||
fi
|
||||
( cd $eveVMPath && vagrant $* )
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue