-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
45 lines (35 loc) · 1000 Bytes
/
.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
alias umountall='sudo umount /media/jcormier/*'
#### Search shortcuts
alias rgrep='grep -RI --exclude-dir=.svn --exclude-dir=*.prj_files' # Recursive grep ignoring svn files
alias cgrep='rgrep --include=*.{c,cpp,h,py}'
alias tgrep='dmesg | grep ttyUSB'
#SACK SAG
alias sag='sack -ag'
# Discover file hogs in current directory
alias ducks='du -cks * |sort -rn |head -11'
#### VIM shortcuts
# Open files in already open gvim
alias g='gvim --remote-silent'
alias markcscopedb='export CSCOPE_DB=`pwd`'
#### Git shortcuts
alias gits='git status'
alias gcp='git cherry-pick -xs'
# Open gitk limiting history to 2k entries
function gitk_launch() {
gitk -n2000 $@ &
}
alias gitk='gitk_launch'
#### SVN shortcuts
alias svndiff='svn diff | less'
#### Misc
alias cdwork="cd /data/work"
alias sync="time sync"
alias umount="time umount"
# Should allow sudo to run aliases
alias sudo='sudo '
function screen_serial()
{
TTY=$1
screen /dev/ttySerial$TTY 115200
}
alias serial='screen_serial'