-
Notifications
You must be signed in to change notification settings - Fork 2
/
zshrc.alias
42 lines (38 loc) · 940 Bytes
/
zshrc.alias
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
alias c='clear'
alias grep='grep --color'
# ls の結果に色をつける
case "${OSTYPE}" in
darwin*)
alias ls="ls -G"
alias ll="ls -lG"
alias la="ls -laG"
;;
linux*)
alias ls='ls --color'
alias ll='ls -l --color'
alias la='ls -la --color'
;;
esac
# git
alias gb='git branch'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gbdall='git branch --merged | grep -v \* | xargs -I % git branch -d %'
alias gch='git checkout'
alias gchb='git checkout -b'
alias gdf='git diff'
alias gdfs='git diff --staged'
alias glg='git log'
alias gst='git status'
alias gffs='git flow feature start'
alias gfff='git flow feature finish'
alias gpn='git push -n'
# terraform
alias tp='terraform plan'
alias tprf='terraform plan -refresh=false'
alias ta='terraform apply'
alias ti='terraform init'
alias tc='terraform console'
# perl
alias perlck='perl -Mstrict -Mwarnings -wc'
alias perldoc='perldoc -M Pod::Text::Color::Delight'