trans-alfred/set_alfred_env.sh

12 lines
505 B
Bash
Raw Normal View History

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"