-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bash_aliases
60 lines (40 loc) · 1.29 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
alias ll='ls -lh'
alias la='ls -A'
alias l='ls -lah'
#alias make='make -j 2'
#alias make='colormake'
alias iotop='sudo iotop'
alias iftop='sudo iftop'
alias iptraf='sudo iptraf'
alias dmesg='sudo dmesg'
psgrep() {
tmp="$(mktemp || (echo "Unable to mktemp"; return 5))"
ps -Ao user,pid,ppid,%cpu,%mem,tty,stat,bsdstart,bsdtime,cmd > "$tmp"
head -n 1 "$tmp"
grep "$*" < "$tmp"
rm -f "$tmp"
}
alias add-ssh-keys="ssh-add $HOME/.ssh/id*priv"
alias refox='killall -9 iceweasel && iceweasel > /dev/null &'
alias colorcat='pygmentize -g'
alias gpg=gpg2
alias k='khal calendar'
alias dd='dd status=progress conv=fsync,fdatasync'
alias sysu="systemctl --user"
complete -F _systemctl sysu
alias v="vdirsyncer sync"
alias cal="ncal -w3"
if [ -r ~/.bash_aliases.$HOSTNAME ]; then
source ~/.bash_aliases.$HOSTNAME
fi
alias python=python3
alias pip=pip3
alias ffprobe='ffprobe -hide_banner'
alias ffmpeg='ffmpeg -hide_banner'
alias diff='diffless'
alias patch="patch --merge=diff3"
grepdiff() { command grepdiff --output-matching=hunk "$@" | colordiff -u | diff-highlight | less -R --quit-if-one-screen ; }
# gpatch: patch after failed git-am
alias gpatch="patch --merge -p1 -r - --no-backup-if-mismatch"
alias feed2exec='echo "No. Wrong database. Please start the systemd unit instead."'
alias rp=realpath