forked from JDevlieghere/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
59 lines (41 loc) · 1.4 KB
/
.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
# Better ls.
alias ll="ls -lha"
# Launch Emacs.
alias em="emacsclient --no-wait"
# Human-readable disk usage.
alias dfh="df -Tha --total"
# Show IP addresses.
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
alias whois="whois -h whois-servers.net"
# Show processes.
alias psa="ps auxf"
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
# History.
alias hig="history | grep"
# Find matching files.
alias lsg='ll | grep'
# Map function.
alias map="xargs -n1"
# Build ctags.
alias mktags="ctags --extra=+f -R ."
# Reload shell.
alias reload="exec $SHELL -l"
# View dirty memory.
alias dirty='watch grep -e Dirty: -e Writeback: /proc/meminfo'
# Show CPU temperature with sensors.
alias cputemp='watch -n 0 "sensors | grep Core"'
# Show GPU temperature with NVIDIA System Management Interface.
alias gputemp='watch -n 0 "nvidia-smi -q -d temperature"'
# Show CPU Clock Speed.
alias clockspeed='watch -n 0 "lscpu | grep \'MHz\'"'
# Show CCache stats.
alias ccaches='watch -n 0 "ccache -s"'
# Rsync with progress.
alias psync='rsync --progress'
# Get first column and ignore binary matches.
alias fstnl='cut -d":" -f1 | uniq | grep -v "Binary "'
# Git grep.
alias gg='git grep'
# Fast diff for large files.
alias fdiff='diff --speed-large-files'