-
Notifications
You must be signed in to change notification settings - Fork 0
/
code-activator.conf
82 lines (66 loc) · 2.11 KB
/
code-activator.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# cloned projects will be nested under the specified directories,
# allowing for meaningful project grouping. A friendly name is
# derived from the path
#
# e.g. "$HOME/Projects/GitHub" will be called "GitHub" in the CLI
#
# directories must be fully-qualified
CA__DIRS=()
#####################################################################
__BASE_DIR="$(readlink -f -- "${XDG_DATA_HOME:-${HOME}/.local/share}/project-source-code")"
[ "${__BASE_DIR}" ] && {
[ -d "${HOME}/Projects" ] && mv "${HOME}/Projects" "${__BASE_DIR}" # TODO : remove after everyone is moved to xdg home
[ -d "${__BASE_DIR}" ] || mkdir -p -- "${__BASE_DIR}"
for __PROJECT_GROUP in \
brown-bag \
gizmos \
open-source \
python \
yage \
zsh \
;
do
mkdir -p "${__BASE_DIR}/${__PROJECT_GROUP}"
done
CA__DIRS+=($(find "${__BASE_DIR}" -mindepth 1 -maxdepth 1 -type d | sed 's/\/$//'))
}
unset __BASE_DIR
#####################################################################
# additional cloning targets; MUST END IN ':' or '/'
# e.g. '[email protected]:' or '[email protected]:w0ryn/'
CA__KNOWN_TARGETS=(
'[email protected]:directus/'
'[email protected]:brown-bag/'
'[email protected]:gizmos/'
'[email protected]:python/'
'[email protected]:rentdynamics/'
'[email protected]:wrynegade/'
'[email protected]:wrynegade/'
'[email protected]:directus/'
'https://yage.io/'
'https://github.com/'
'https://bitbucket.org/'
'[email protected]:wrynegade/'
)
# run from the specified hot-key
CA__SHORTCUT='