-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathenv.sh
23 lines (21 loc) · 906 Bytes
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
export alfred_workflow_bundleid="com.ryankoval.awsconsoleservices"
export alfred_version=3.8
export alfred_workflow_version=1.0
if [ "$(uname)" == "Darwin" ] && [ -z "$TEST" ]; then
# make this mirror where alfred stores cache/data
if [ -d "$HOME/Library/Application Support/Alfred" ]; then
cache_dir="com.runningwithcrayons.Alfred"
data_dir="Alfred"
else
cache_dir="com.runningwithcrayons.Alfred-3"
data_dir="Alfred 3"
fi
export alfred_workflow_data="$HOME/Library/Application Support/$data_dir/Workflow Data/$alfred_workflow_bundleid"
export alfred_workflow_cache="$HOME/Library/Caches/$cache_dir/Workflow Data/$alfred_workflow_bundleid"
else
# CI won't have alfred directories, so just create in repo root
root="$(git rev-parse --show-toplevel)/.alfred"
export alfred_workflow_data="${root}/data"
export alfred_workflow_cache="${root}/cache"
fi