-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
70 lines (55 loc) · 1.81 KB
/
.bashrc
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
#!/usr/bin/env bash
# known embryo paths
export EMBRYO_PATH="$EMBRYO_PATH:$HOME/code/gigaquads-embryos/stable"
export EMBRYO_PATH="$EMBRYO_PATH:$HOME/code/axial-embryos"
export EMBRYO_PATH="$EMBRYO_PATH:$HOME/code/track-me-track-you/track_me_track_you/embryos"
EMBRYO_BIN_NAME='embryo'
for addon in $EMBRYO_BIN_NAME
do
thisbin=`which $addon`
declare "THIS_$addon=$thisbin"
if [ $thisbin ]
then
printf ", +$addon"
else
printf ", -$addon"
fi
done
if [ $THIS_embryo ]
then
# support embryo convenience
# generic project
alias projbase="embryo hatch project/base --project.name"
alias projenv="embryo hatch project/env"
# for python-project
alias pybase="embryo hatch python-project/base"
alias pylicense="embryo hatch python-project/license --author"
alias pysetup="embryo hatch python-project/setup --refresh_scripts True"
# pybiz-project
alias bizapi="embryo hatch pybiz-project/api --api.name"
alias bizbase="embryo hatch pybiz-project/base"
alias bizbiz="embryo hatch pybiz-project/biz --biz.name"
alias bizcli="embryo hatch pybiz-project/cli"
alias bizdao="embryo hatch pybiz-project/dao --dao.type yaml --dao.name"
alias bizenv="embryo hatch pybiz-project/env"
alias bizresource="embryo hatch pybiz-project/resource --resource.name"
alias bizsvc="embryo hatch pybiz-project/svc"
alias bizuwsgi="embryo hatch pybiz-project/uwsgi"
# git
alias emgit="embryo hatch git-project"
# embryo
alias emembryo="embryo hatch embryo --name"
# docker
alias dockproj="embryo hatch docker/base"
dockproj_notdsk() {
dockproj \
--build.repo.server gitlab \
--build.repo.org notdsk \
--build.repo.gitlab_host https://code.lib.land \
$@
}
# helm
alias emhelm="embryo hatch helm/chart --chart.name"
# drone
alias emdrone="embryo hatch drone"
fi