]>
Commit | Line | Data |
---|---|---|
1afdf944 | 1 | alias axine='xine -A null' |
de7f2c38 | 2 | alias b='bzr' |
5b61754d | 3 | alias bc='bc -q' |
1afdf944 MF |
4 | #alias bittorrent-curses='bittorrent-curses --max_upload_rate 10' |
5 | #alias bt='bittorrent-curses --max_upload_rate 10 --save_in . --save_incomplete_in .' | |
83b07a3a | 6 | alias cdrecord='cdrecord -vvv -eject driveropts=burnfree' |
5b61754d | 7 | alias duh='du . --max-depth=1 -h' |
63d15f58 | 8 | alias eclipse='eclipse-3.2 -vmargs -Xmx512m' |
ca0cd585 | 9 | alias g='git' |
5b61754d | 10 | alias gdb='gdb --quiet' |
1afdf944 | 11 | alias gdbtui='gdbtui --quiet' |
8a844016 | 12 | alias nohist='export HISTFILE=/dev/null' |
d85737d7 | 13 | alias kpdf='okular' |
e13e790d | 14 | alias ipython='ipython --no-banner --no-confirm-exit --pdb --nosep --PromptManager.in_template=">>> " --PromptManager.out_template="" --PromptManager.justify=False' |
14031d68 | 15 | if command -v elinks >/dev/null ; then |
78ddcb31 MF |
16 | alias links='elinks -default-mime-type text/html' |
17 | alias lynx=links | |
14031d68 MF |
18 | elif command -v lynx >/dev/null ; then |
19 | alias lynx='lynx -nopause -accept_all_cookies -use_mouse' | |
20 | fi | |
5b61754d MF |
21 | alias minicom='minicom -w -c on' |
22 | alias nslookup='nslookup -sil' | |
d80dd902 MF |
23 | alias p1='patch -p1' |
24 | alias p1d='patch -p1 --dry-run' | |
25 | alias p1dr='patch -p1 --dry-run -R' | |
26 | alias p1r='patch -p1 -R' | |
1afdf944 | 27 | alias quake4='quake4 +set s_driver oss' |
aa909367 | 28 | alias rrsync='rsync -Hav --inplace --progress' |
5b61754d | 29 | alias s='aspell -a' |
375dc529 | 30 | sss() { aspell -a <<<"$*"; } |
598dd9e3 | 31 | smplayer() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec mplayer "$@" >/dev/null 2>&1' sh "$@" ; } |
b598da0c | 32 | svlc() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec vlc "$@" >/dev/null 2>&1' sh "$@" ; } |
e034a752 | 33 | svnc() { sudo -u smriti sh -c 'export DISPLAY=:0; xset s reset; exec x11vnc -q -nopw' ; } |
1c9edcf2 | 34 | alias trc=transmission-remote-cli |
1afdf944 | 35 | alias xine='xine -l' |
5b61754d | 36 | |
276cf0d7 | 37 | alias wol-vapier='wakeonlan -i 192.168.1.255 00:25:22:64:19:79; wakeonlan -i 192.168.0.255 00:25:22:64:19:79' |
145ec29a | 38 | |
019bffbb MF |
39 | adk_path() { |
40 | local adk=/usr/local/src/android/adk/current/sdk | |
41 | PATH+=":${adk}/tools:${adk}/platform-tools" | |
42 | } | |
43 | ||
06ac7c77 MF |
44 | pd() { |
45 | if [[ $# -eq 0 ]] ; then | |
46 | popd | |
cf68f8b6 MF |
47 | elif [[ $# -eq 1 && $1 == "--" ]] ; then |
48 | dirs -v | |
06ac7c77 MF |
49 | else |
50 | pushd "$@" | |
51 | fi | |
52 | } | |
53 | ||
cf68f8b6 MF |
54 | cd_history() { |
55 | if [[ $# -eq 1 ]] ; then | |
56 | case $1 in | |
57 | -h) | |
58 | command dirs "$1" |& tail -1 | |
59 | command cd "$1" |& tail -1 | |
60 | return | |
61 | ;; | |
62 | --help) | |
63 | command dirs "$1" | |
64 | command cd "$1" | |
65 | return | |
66 | ;; | |
67 | -[clpv]) | |
68 | command dirs "$1" | |
69 | return | |
70 | ;; | |
71 | -[0-9]*) | |
72 | set -- "$(dirs "+${1:1}")" | |
73 | ;; | |
74 | esac | |
75 | fi | |
76 | if command cd "$@" ; then | |
77 | pushd -n "${PWD}" >/dev/null | |
78 | fi | |
79 | } | |
80 | alias cd='cd_history' | |
81 | ||
77ee95d3 | 82 | if [[ ${TERM} != "dumb" ]] ; then |
aa909367 | 83 | export GREP_COLORS=ne #470810 |
4c1fde46 | 84 | alias grep='grep --colour=auto -d skip' |
77ee95d3 MF |
85 | alias ls='ls --color=auto' |
86 | fi | |
87 | ||
5b61754d | 88 | scrub_patch() { |
4c1fde46 MF |
89 | sed -i \ |
90 | -e '/^index /d' \ | |
5b61754d | 91 | -e '/^new file mode /d' \ |
4c1fde46 | 92 | -e '/^Index:/d' \ |
5b61754d MF |
93 | -e '/^=========/d' \ |
94 | -e '/^RCS file:/d' \ | |
95 | -e '/^retrieving/d' \ | |
96 | -e '/^diff/d' \ | |
97 | -e '/^Files .* differ$/d' \ | |
1c9edcf2 | 98 | -e '/^Binary files .* differ$/d' \ |
5b61754d MF |
99 | -e '/^Only in /d' \ |
100 | -e '/^Common subdirectories/d' \ | |
4c1fde46 MF |
101 | -e '/^deleted file mode [0-9]*$/d' \ |
102 | -e '/^+++/s:\t.*::' \ | |
103 | -e '/^---/s:\t.*::' \ | |
104 | "$@" | |
5b61754d MF |
105 | } |
106 | ||
1afdf944 | 107 | scrub_html() { |
e0db24bd MF |
108 | local a=( |
109 | 'lt' '<' | |
110 | 'gt' '>' | |
111 | 'nbsp' ' ' | |
112 | 'amp' '&' | |
113 | 'quot' '"' | |
114 | ) | |
115 | [[ $# -gt 0 ]] && set -- "$@" -i | |
116 | eval sed \"\$@\" $(printf -- ' -e "s|\&%s;|%q|g"' "${a[@]}") | |
5b61754d | 117 | } |