-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
56 lines (49 loc) · 1.94 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
#Git aliases
alias gb='git branch'
alias gba='git branch -a'
alias gbs='for branch in $(git branch -r | grep -v HEAD);do echo -e $(git show --format="%ci" $branch | head -n 1) \\t$branch; done | sort -r'
alias gd='git diff '
alias gdd='git status -suno'
alias gds='git diff --stat'
alias gdsn='git status --untracked-files=no'
alias gg='git grep -n'
alias ggg='git grep -n -p -10'
alias ggs='git status -uno'
alias gl='git log --oneline --decorate '
alias gla='git log --color --graph --decorate --abbrev-commit --pretty=oneline --branches --all'
alias gll='git log --oneline --decorate FETCH_HEAD..HEAD '
alias glm='git log --oneline master..'
alias gvd='git difftool -t vimdiff '
alias gls='git ls-files '
alias gis='git status'
alias ga='git add'
alias gc='git commit -s'
alias gca='git commit -s --amend'
alias ctags="ctags -R --c-kinds=+p --fields=+iaS --extra=+q --links=no"
# Repo aliases
alias rs="repo status"
alias rc="repo checkout"
alias rt="repo start --all"
alias rd="repo diff"
alias ry='repo sync -j 8'
alias rb='repo branches'
alias rr='repo rebase'
alias ru='repo upload -t'
alias rp='repo prune'
alias ro='repo info -o'
# Research aliases
alias f='find `pwd` | grep -v tags | grep "\.[chs]$" | grep -i '
alias fa='find `pwd` | grep -v tags | grep -i '
alias ff='find `pwd` -type f | grep -v tags | grep "\.[ch]$" | xargs grep -I --color -n '
alias ffi='find `pwd` -type f | grep -v tags | grep "\.[ch]$" | xargs grep -I --color -ni '
alias ffa='find `pwd` -type f | grep -v tags | xargs grep -I --color -n '
alias ffai='find `pwd` -type f | grep -v tags | xargs grep -I --color -ni '
alias fh='find `pwd` | grep -v tags | grep "\.h$" | xargs grep --color -ni '
alias fc='find `pwd` | grep -v tags | grep "\.c$" | xargs grep --color -ni '
# Compilation
alias c='make clean'
alias m='time make -j8'
alias cm='make clean && time make -j8'
# To update regarding project
__elf_file__=path
alias addr='arm-none-eabi-addr2line -e $__elf_file__ -pifa'