dvs-workon
Change to an application's directory
Usageβ
dvs-workon <app-name>
Argumentsβ
<app-name>- The name of the application
Noteβ
This command is a shortcut for:
cd "$(dvs app-folder myapp)"
Error Handlingβ
- If the application is not found, the command does nothing
Tipβ
You can combine activating an application and changing directory. For example, the bash function dw below allows you to perform both operations in a single command:
dw() {
if [[ $# -ne 1 ]]; then
echo "usage: dw <app>"
exit 1
fi
local app="$1"
export DVS_ACTIVE_APP=$app
cd "$(dvs app-folder $app)"
}