forked from deanishe/awgo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,059 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
|
||
#!/bin/bash | ||
|
||
# When sourced, creates an Alfred-like environment needed by modd | ||
# and ./bin/build (which sources the file itself) | ||
|
||
# getvar <name> | Read a value from info.plist | ||
getvar() { | ||
local v="$1" | ||
/usr/libexec/PlistBuddy -c "Print :$v" info.plist | ||
} | ||
|
||
# stuff in info.plist | ||
export alfred_workflow_bundleid=$( getvar "bundleid" ) | ||
export alfred_workflow_version=$( getvar "version" ) | ||
export alfred_workflow_name=$( getvar "name" ) | ||
|
||
# workflow data and cache directories | ||
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}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
unset alfred_workflow_bundleid | ||
unset alfred_workflow_version | ||
unset alfred_workflow_name | ||
unset alfred_workflow_data | ||
unset alfred_workflow_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Ignore binary | ||
/settings | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.