-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash.cfg
42 lines (34 loc) · 2.04 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
39
40
41
42
# 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-specific Java aliases
alias ex1="cd ${GITPOD_REPO_ROOT}/exercises/sending-signals-external/practice"
alias ex1s="cd ${GITPOD_REPO_ROOT}/exercises/sending-signals-external/solution"
alias ex1w="mvn exec:java -Dexec.mainClass='sendingsignalsexternal.SendSignalExternalWorker'"
alias ex1st="mvn exec:java -Dexec.mainClass='sendingsignalsexternal.Starter'"
# Exercise-specific Java aliases
alias ex2="cd ${GITPOD_REPO_ROOT}/exercises/sending-signals-client/practice"
alias ex2s="cd ${GITPOD_REPO_ROOT}/exercises/sending-signals-client/solution"
alias ex2w="mvn exec:java -Dexec.mainClass='sendingsignalsclient.SendSignalClientWorker'"
alias ex2st="mvn exec:java -Dexec.mainClass='sendingsignalsclient.Starter'"
alias ex2sg="mvn exec:java -Dexec.mainClass='sendingsignalsclient.SignalClient'"
alias ex3="cd ${GITPOD_REPO_ROOT}/exercises/querying-workflows/practice"
alias ex3s="cd ${GITPOD_REPO_ROOT}/exercises/querying-workflows/solution"
alias ex3w="mvn exec:java -Dexec.mainClass='queryingworkflows.QueryingWorkflowsWorker'"
alias ex3st="mvn exec:java -Dexec.mainClass='queryingworkflows.Starter'"
alias ex3sg="mvn exec:java -Dexec.mainClass='queryingworkflows.SignalClient'"
alias ex3q="mvn exec:java -Dexec.mainClass='queryingworkflows.QueryClient'"
alias ex4="cd ${GITPOD_REPO_ROOT}/exercises/async-activity-completion/practice"
alias ex4s="cd ${GITPOD_REPO_ROOT}/exercises/async-activity-completion/solution"
alias ex4w="mvn exec:java -Dexec.mainClass='asyncactivitycompletion.TranslationWorker'"
ex4st() {
mvn exec:java -Dexec.mainClass="asyncactivitycompletion.Starter" -Dexec.args="${1} ${2}"
}
ex4c() {
mvn exec:java -Dexec.mainClass="asyncactivitycompletion.VerifyAndCompleteTranslation" -Dexec.args="${1} ${2}"
}