-
Notifications
You must be signed in to change notification settings - Fork 20
/
bash_aliases
73 lines (48 loc) · 2.65 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
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
# colors, yay!
alias ls='ls --color=auto'
alias svndiff="svn diff --diff-cmd=colordiff"
alias grep='grep --colour'
# run php on cli with special config for profiling
alias phprofile='php -c /etc/php5/cli/profile/'
# shortcut
alias compile++='g++ -Wall -pedantic -ansi'
# run program in gdb
# usage: debug APP APP_ARGS
alias debug='QT_XCB_NO_GRAB_SERVER=1 gdb -q --eval-command="run" --args'
alias debug_main='QT_XCB_NO_GRAB_SERVER=1 gdb -q --eval-command="break main" --eval-command="run" --args'
alias debug_catch='QT_XCB_NO_GRAB_SERVER=1 gdb -q --eval-command="catch throw" --eval-command="run" --args'
# sometimes I want to clean all files which are not tracked by svn
alias svnclean="svn status | grep "^?" | cut -c 3- | xargs rm -Rf"
if [ -f /etc/arch-release ]; then
# arch linux specific aliases
alias upgradesystem='CMAKE_GENERATOR="Unix Makefiles" paru -Syu'
# ack is called ack-grep under debian, and I got used to that name...
alias ack-grep='ack'
fi
alias free="free -h"
# mplayer with cache, e.g. for sshfs mounted shares and the like
alias netmplayer="mplayer -cache 8192"
alias kde-update-pim="kde-update akonadi nepomuk-core nepomuk-widgets kdepimlibs kdepim-runtime kdepim"
alias kde-update-kdev="kde-update kate kdevplatform kdevelop kdev-php kdev-php-docs kdev-qmake"
alias isomount="sudo mount -o loop -t iso9660"
alias enable_icc="source ~/.bin/enable_icc.sh"
alias webkit-debug="export QTWEBKIT_INSPECTOR_SERVER=9999"
alias kdab-berlin-vpn="sudo openvpn /etc/openvpn/client/tunnel-to-berlin.ovpn"
alias nvidia-run="vblank_mode=0 primusrun"
alias screen-omap5432="screen /dev/ttyUSB0 115200 8N1"
alias dropcaches="echo 3 | sudo tee /proc/sys/vm/drop_caches"
alias clazy-demo="CLAZY_CHECKS='level0,level1,level2,level3' clazy -I/usr/include/qt -I/usr/include/qt/QtCore -c -o /dev/null -std=c++11 -fPIC"
alias clazy-demo-gcc="g++ -Wall -Wpedantic -I/usr/include/qt -I/usr/include/qt/QtCore -c -o /dev/null -std=c++11 -fPIC"
alias aslr-disable="echo 0 | sudo tee /proc/sys/kernel/randomize_va_space"
alias aslr-enable="echo 2 | sudo tee /proc/sys/kernel/randomize_va_space"
alias toplev="python2 $HOME/projects/src/pmu-tools/toplev.py"
alias top="htop"
alias memcheck="valgrind --smc-check=all-non-file --track-origins=yes"
alias kde_reboot="qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 1 0"
alias kde_shutdown="qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 0 2 0"
alias minmaxavgstats="datamash -W min 1 max 1 mean 1 median 1 q1 1 q3 1 sstdev 1"
alias icemon="icemon -s 192.168.150.185"
alias ls="lsd --group-dirs=first --icon=never"
alias diff="colordiff -u"
alias clang-ast-dump="clang -cc1 -ast-dump"