-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsass.zsh
34 lines (25 loc) · 1023 Bytes
/
sass.zsh
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
export SASS_DIR=~/dev/sassafras
export ODK_COLLECT_DIR=${SASS_DIR}/tcc/collect
export NEMO_DIR=${SASS_DIR}/tcc/nemo
export HB_DIR=${SASS_DIR}/hollaback
export RR_DIR=${SASS_DIR}/rita/realrisks
export AWS_DEFAULT_PROFILE=tcc
alias sass='cd ${SASS_DIR}'
alias odkc='cd ${ODK_COLLECT_DIR}'
alias nemo='cd ${NEMO_DIR}'
alias nemos='nvm use && echo "\nCollect endpoint: http://YOURIP:8443/m/yourmission\n" && be rails s -p 8443 -b 0.0.0.0'
# Connect, with reminder to disconnect
alias vpnc='open http://timer-tab.com && vpn connect'
# --- RealRisks
alias rr='cd ${RR_DIR}'
# --- IntelliJ workspaces.
workspace-backup-collect() {
cp ${ODK_COLLECT_DIR}/.idea/workspace{.xml,.xml.bak} && \
echo "Saved backup at ${ODK_COLLECT_DIR}/.idea/workspace.xml.bak"
}
alias work-bak-odkc=workspace-backup-collect
workspace-restore-collect() {
cp ${ODK_COLLECT_DIR}/.idea/workspace{.xml.bak,.xml} && \
echo "Restored backup from ${ODK_COLLECT_DIR}/.idea/workspace.xml.bak"
}
alias work-restore-odkc=workspace-restore-collect