65 lines
1.7 KiB
Plaintext
65 lines
1.7 KiB
Plaintext
# 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=()
|
||
|
||
for __CA_DIR_LOOKUP in \
|
||
"$HOME/Projects" \
|
||
;
|
||
do
|
||
__CA_DIR_LOOKUP="$(readlink -f -- "$__CA_DIR_LOOKUP")"
|
||
[ "$__CA_DIR_LOOKUP" ] && [ -d "$__CA_DIR_LOOKUP" ] && CA__DIRS+=($(find "$__CA_DIR_LOOKUP" -mindepth 1 -maxdepth 1 -type d | sed 's/\/$//'))
|
||
done
|
||
unset __CA_DIR_LOOKUP
|
||
|
||
# additional cloning targets; MUST END IN ':' or '/'
|
||
# e.g. 'git@my.githost.com:' or 'git@github.com:w0ryn/'
|
||
CA__KNOWN_TARGETS=(
|
||
'git@yage.io:directus/'
|
||
'git@yage.io:brown-bag/'
|
||
'git@yage.io:gizmos/'
|
||
'git@yage.io:python/'
|
||
'git@yage.io:rentdynamics/'
|
||
'git@yage.io:wrynegade/'
|
||
'git@github.com:wrynegade/'
|
||
'git@github.com:directus/'
|
||
'https://yage.io/'
|
||
'https://github.com/'
|
||
'https://bitbucket.org/'
|
||
'git@bitbucket.org:wrynegade/'
|
||
)
|
||
|
||
|
||
# run from the specified hot-key
|
||
CA__SHORTCUT=' |