Add script to set up environment for awgo

This commit is contained in:
Kristóf Tóth 2019-04-06 11:00:04 +02:00
parent cc261742fc
commit b816c3b811

11
set_alfred_env.sh Executable file
View File

@ -0,0 +1,11 @@
getvar() {
local v="${1}"
/usr/libexec/PlistBuddy -c "Print :${v}" info.plist
}
export alfred_workflow_bundleid="$(getvar "bundleid")"
export alfred_workflow_version="$(getvar "version")"
export alfred_workflow_name="$(getvar "name")"
export alfred_workflow_data="$HOME/Library/Application Support/Alfred 3/Workflow Data/$alfred_workflow_bundleid"
export alfred_workflow_cache="$HOME/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/$alfred_workflow_bundleid"
export alfred_debug="1"