yadm-config/.config/terminal/alias.sh##class.Work
2025-04-24 11:27:59 +02:00

13 lines
324 B
Bash

#!/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 $* )
}