-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterminal_config
54 lines (44 loc) · 1.47 KB
/
terminal_config
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
export EDITOR=/usr/bin/vim
alias pcip='dig +short myip.opendns.com @resolver1.opendns.com'
alias bb='bitbucketcli'
alias listpr='listPr'
alias createpr='createPr'
alias lg='lazygit'
# GIT
alias ga='git add'
alias gapa='git add --patch'
alias gc='git commit -v'
alias gc!='git commit -v --amend'
alias gd='git diff'
alias gds='git diff --staged'
alias gm='git merge'
alias go='git checkout '
alias gst='git status'
alias glolaa='git log --graph --pretty=format:"%C(yellow)%h %C(green)[%ad] %C(reset)%s %C(blue)(%cn)" --date=short --all'
alias glola='git log --graph --pretty=format:"%C(yellow)%h %C(green)[%ad]%C(red)%d %C(reset)%s %C(blue)(%cn)" --date=short --all'
alias glolas='git log --graph --pretty=format:"%C(yellow)%h %C(green)[%ad]%C(red)%d %C(reset)%s %C(blue)(%cn)" --date=short --all --simplify-by-decoration'
alias gloll='git log --graph --pretty=format:"%C(yellow)%h %C(green)[%ad] %C(reset)%s %C(blue)(%cn)" --date=short'
alias glol='git log --graph --pretty=format:"%C(yellow)%h %C(green)[%ad]%C(red)%d %C(reset)%s %C(blue)(%cn)" --date=short'
alias gpristine='git reset --hard && git clean -dfx'
alias gdeadbranches='git branch --merged | egrep -v "(^\\*|master|development|acceptance)"'
function gqs() {
git-quick-stats --my-daily-stats
}
function ga!() {
git add "*$1*"
}
function gd!() {
git diff "*$1*"
}
function gapa!() {
git add --patch "*$1*"
}
function mkcdt() {
cd "$(mktemp -d)"
}
function createPr() {
bb pr create
}
function listPr() {
bb pr list
}