-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases_red
48 lines (42 loc) · 1.73 KB
/
.bash_aliases_red
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
export [email protected]
export GIT_AUTHOR_NAME='Mark Berger'
export [email protected]
export GIT_COMMITTER_NAME='Mark Berger'
alias ga='git add'
alias gai='git add --interactive'
alias gap='git add --patch'
alias gau='git add --update'
alias gb='git branch'
alias gbl='git branch -a'
alias gca='git commit -a -m'
alias gcm='git commit --reset-author -c'
alias gcmh='git commit --reset-author -c HEAD'
alias gd='git diff -w'
alias gdnc='git diff -w --no-color'
alias gdc='git diff -w --cached'
alias gdcnc='git diff -w --cached --no-color'
alias gdns='git diff --name-status'
alias gdnss='git diff --stat --color'
alias gf='git show --pretty="format:" --name-only'
alias gh='git help'
alias gl='git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
alias glh='gl | head'
alias glhn='gl | head -n'
alias glg="git log --graph --decorate --pretty='%C(yellow)%h%Creset %an %s (%ar)'"
alias glgg='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
alias gls='git ls-files -s'
alias grv='git remote -v'
alias gs='git status'
alias gsnc='gs -s --porcelain'
alias gsh='git show --name-status --oneline'
alias gshnc='git show --name-status --oneline --no-color'
alias dush='du -hs .[^.]* *'
alias dt="date +%Y-%m-%d"
alias dtc="date +%Y%m%d"
alias ts="date +%Y%m%d_%H%M%S"
alias ls='ls --color=auto'
alias ll='ls -altr'
alias ~updatealiasmhb='curl -o .bash_aliases_mhb -Ls https://github.com/mhberger/dotfiles/raw/master/.bash_aliases_red'
alias ~alias='vi ~/.bash_aliases_mhb && . ~/.bash_aliases_mhb'
function st() { echo "setting title to [${@}]"; export PROMPT_COMMAND='echo -ne "\033]0;'$@'\007"'; }
function gitgrep () { git grep $@ $(git rev-list --all); }