-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
120 lines (102 loc) · 3.65 KB
/
.bash_aliases
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# http://stackoverflow.com/questions/4642822/commands-executed-from-vim-are-not-recognizing-bash-command-aliases
shopt -s expand_aliases
alias time24hour='/bin/date \+\%-H:\%M'
alias sayrandom='say -v $(/Users/mark/dev/sh/randomEnglishVoice.sh)'
alias whatip='curl -s https://api.ipify.org'
alias agd='sudo apt-get dist-upgrade'
alias agi='sudo apt-get install'
alias agr='sudo apt-get remove'
alias ags='apt-cache search'
alias agsh='apt-cache show'
alias agu='sudo apt-get update'
alias b2d='boot2docker'
alias b2dinit='$(boot2docker shellinit)'
alias calm='cal -m'
alias caly='cal -y'
alias cut80='cut -c 1-80'
alias diffo='diff -y --suppress-common-lines'
alias diffow='diff -W250 -y --suppress-common-lines'
alias dos2unix="tr -d '\r'"
alias dush='du -hs .[^.]* *'
alias dt="date +%Y-%m-%d"
alias ts="date +%Y%m%d_%H%M%S"
alias dtc="date +%Y%m%d"
alias treed='tree -d'
alias treedn='tree -d -L '
alias treen='tree -L '
alias rgu='rg -uuu'
alias rgl='rg -l'
alias loadnvm='export NVM_DIR="$HOME/.nvm";[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"'
alias setnode8='nvm use --delete-prefix 8'
alias setnode9='nvm use --delete-prefix 9'
alias setnode10='nvm use --delete-prefix 10'
alias setnode6='nvm use --delete-prefix 6'
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 gdc='git diff -w --cached'
alias gdh='git diff -w HEAD~1 HEAD'
alias gdns='git diff --name-status'
alias gdnss='git diff --stat --color'
alias gf='git show --pretty="format:" --name-only'
alias gg='git grep'
alias gh='git help'
alias gitunadd='git reset --mixed'
alias gituncommit='git reset --soft'
alias gitundo='git reset --hard'
alias gl='git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
alias gla='gl --all'
alias glg="git log --graph --decorate --pretty='%C(yellow)%h%Creset %an %s (%ar)'"
alias glg='git log --graph --abbrev-commit --pretty=oneline'
alias glgg='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
alias glh='gl | head'
alias glhn='gl | head -n'
alias glreverse='git log --reverse --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
alias gls='git ls-files -s'
alias gls='git ls-files'
alias grv='git remote -v'
alias gs='git status'
alias gsb='git show-branch master git-svn'
alias gsba='git show-branch -a'
alias gsbs='git show-branch master svn/trunk'
alias gsd='git svn dcommit'
alias gsh='git show --name-status --oneline'
alias gsr='git svn rebase'
alias jb='jbake'
alias jbb='jbake -b'
alias jj='jbb && rm output/2*.html && ./splitfile.sh'
alias ll='ls -altr'
alias lld="ls -altr | grep ^d"
alias llf="ls -altr | grep -v ^d"
alias ls='ls --color=auto'
alias ls='ls -G'
alias uniqc='sort | uniq -c'
alias lower='tr "[:upper:]" "[:lower:]"'
alias upper='tr "[:lower:]" "[:upper:]"'
alias hd='hexdump -C'
alias psa="ps -aux"
alias nets='netstat -nr | less'
alias routes='netstat -nr | less'
alias hosts="grep -v '^#' /etc/hosts"
alias sha1="openssl sha1"
alias sha256="openssl sha256"
alias tma='tmux attach -t'
alias tmls='tmux ls'
alias ~alias='vi ~/.bash_aliases && . ~/.bash_aliases'
export GIT_AUTHOR_EMAIL=mark.berger@moothall.nz
export GIT_AUTHOR_NAME='Mark Berger'
export GIT_COMMITTER_EMAIL=mark.berger@moothall.nz
export GIT_COMMITTER_NAME='Mark Berger'
ff ()
{
if [ -z "$1" ] ; then find . -type f | grep -v svn; return; fi
find $1 -type f | grep -v svn
}
function st() { echo "setting title to [${@}]"; export PROMPT_COMMAND='echo -ne "\033]0;'$@'\007"'; }