-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.bash.cfg
38 lines (31 loc) · 1.35 KB
/
.bash.cfg
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
# Avoid the 'bash: __vsc_prompt_cmd_original: command not found' error
unset PROMPT_COMMAND
# Define some handy aliases for use in GitPod
alias workspace="cd ${GITPOD_REPO_ROOT}"
alias webui="gp preview $(gp url 8080)"
# Configure a shorter, but still useful, shell prompt
export PROMPT_DIRTRIM=2
export PS1="\[\033[01;34m\]\w\[\033[00m\]\$ "
# Exercise 1 aliases
alias ex1="cd ${GITPOD_REPO_ROOT}/exercises/hello-workflow/practice"
alias ex1w="mvn compile exec:java -Dexec.mainClass='helloworkflow.HelloWorkflowWorker'"
alias ex1s="cd ${GITPOD_REPO_ROOT}/exercises/hello-workflow/solution"
# Exercise 2 aliases
alias ex2="cd ${GITPOD_REPO_ROOT}/exercises/hello-web-ui/"
# Exercise 3 aliases
alias ex3="cd ${GITPOD_REPO_ROOT}/exercises/farewell-workflow/practice"
alias ex3s="cd ${GITPOD_REPO_ROOT}/exercises/farewell-workflow/solution"
alias ex3m="mvn exec:java -Dexec.mainClass='farewellworkflow.Microservice'"
alias ex3w="mvn exec:java -Dexec.mainClass='farewellworkflow.GreetingWorker'"
ex3st() {
mvn exec:java -Dexec.mainClass="farewellworkflow.Starter" -Dexec.args="${1}"
}
# Exercise 4 aliases
alias ex4="cd ${GITPOD_REPO_ROOT}/exercises/finale-workflow"
alias ex4j="java -classpath java-activity-and-worker-1.1.jar io.temporal.training.PdfCertWorker"
alias ex4w="ex4 && cd go && go run worker/main.go"
ex4st() {
ex4
cd go
go run start/main.go "${1}"
}