-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
32 lines (23 loc) · 922 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
# vim: filetype=sh
function gdb-select {
process=$(pgrep -a postgres | awk -F' ' '/SELECT/ {print $1}')
sudo gdb -p $process
}
export -f gdb-select
function gdb-catch-error {
process=$(pgrep -a postgres | awk -F' ' '/SELECT/ {print $1}')
sudo gdb -p $process -ex 'break elog_finish if elevel == 20'\
-ex 'break errstart if elevel == 20' -ex 'continue'
}
export -f gdb-catch-error
alias tmux='TERM=screen-256color-bce tmux'
alias ussh='echo I hope you know what you are doing && ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
alias lock='i3lock -ti ~/wallpaper.png'
alias disk_space='du -h . 2>/dev/null | sort -rh | head -n $(expr `tput lines` - 1)'
alias vim='vim -w ~/.vimlog "$@"'
alias mkpy='cp ~/template.py $1'
alias fuck='sudo $(history -p \!\!)'
function gcl () {
grep --color=always "$@" | less -R
}
alias do-something-fancy="cat /dev/urandom | hexdump -C | grep 'ca fe'"