-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshenv
31 lines (27 loc) · 800 Bytes
/
zshenv
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
alias l="ls -l"
alias vi="vim"
alias f="find . -name"
alias shasum="shasum -a 256"
alias cdgit='git rev-parse --show-toplevel 2>&1 >/dev/null && cd $(git rev-parse --show-toplevel)' # single so it's not interpolated
alias help="man zshbuiltins"
alias genpub="ssh-keygen -y -f"
alias grep="grep -v grep | grep"
alias md5sum="md5"
alias k="kubectl"
# begin git aliases
alias gs="git status"
alias gl="git log"
alias gd="git diff"
alias gdh="git diff HEAD"
alias git-rm-merged="git branch --merged | egrep -v \"(^\*|master)\" | xargs git branch -d"
# end git aliases
mkcd () {
dir="$*";
mkdir -p "$dir" && cd "$dir";
}
# begin PATH manipulation
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/bin:$PATH"
# end PATH manipulation
# for machine specific configuration
source ~/.profile