-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bash_profile
70 lines (59 loc) · 2.04 KB
/
.bash_profile
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
# Get the Git branch
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Custom bash prompt
#
# Includes custom character for the prompt, path, and Git branch name.
#
# Source: kirsle.net/wizards/ps1.html
export PS1="\n\[$(tput setaf 6)\]\w\[$(tput setaf 3)\]\$(parse_git_branch)\n\[$(tput bold)\]\[$(tput setaf 5)\]➜ \[$(tput sgr0)\]"
export PATH=/usr/local/git/bin:/opt/local/bin:/opt/local/sbin:${PATH}
export PATH=$PATH:/usr/local/mysql/bin/
export PATH=$PATH:~/bin/
# Add token for GitHub packages
export NPM_TOKEN="token"
# nodenv
# Source: https://github.com/nodenv/nodenv
eval "$(nodenv init -)"
# Aliases
## Shortcuts
alias ll='ls -al'
alias editbash='code ~/.bash_profile'
alias resource='source ~/.bash_profile && echo "Done!"'
## Git commands
alias log='git log'
alias diff='git diff'
alias diffe='git diff -- . ":(exclude)package-lock.json"'
alias branch='git branch'
alias st='git status'
alias fetch='git fetch'
alias push='git push origin head'
alias pull='git pull'
alias add='git add --all'
alias cm='git commit -m'
alias co='git checkout'
alias cherry='git cherry-pick'
alias rebase='git rebase -i'
alias reset='git reset --hard head'
alias recent='git recent'
## Other aliases
alias rmember='rm -rf node_modules dist tmp'
## Personal Projects
alias butch='cd ~/Development/butchers-market'
alias config='cd ~/Development/config'
## Work Projects
alias bapi='cd ~/Development/blurple-api'
alias bui='cd ~/Development/blurple-ui'
alias di='cd ~/Development/data-ingestion'
alias dops='cd ~/Development/data-ops-web-server'
alias dopsui='cd ~/Development/data-ops-web-client'
alias dts='cd ~/Development/dts-database'
alias ods='cd ~/Development/ods-database'
alias ops='cd ~/Development/devops-shared'
alias rtp='cd ~/Development/RTP'
alias trans='cd ~/Development/transparency-export-lambda'
alias doc='cd ~/workspace/reputation'
alias docui='cd ~/workspace/reputation/development/modules/com.digitalassent.docscores'
## AWS
alias awsrenew='python ~/Development/devops-shared/cli-sts-auth/sso-aws-cli-auth.py'