]> git.wh0rd.org - home.git/blobdiff - .profile.d/aliases.sh
import vapier
[home.git] / .profile.d / aliases.sh
index 479b8f765798979cce210a1116345eddd3e4db9c..a72c2564ecc743a1ace09215a56afa20fb6be29b 100644 (file)
@@ -1,16 +1,23 @@
 [[ $- != *i* ]] && return
 
+alias axine='xine -A null'
 alias bc='bc -q'
+#alias bittorrent-curses='bittorrent-curses --max_upload_rate 10'
+#alias bt='bittorrent-curses --max_upload_rate 10 --save_in . --save_incomplete_in .'
 alias duh='du . --max-depth=1 -h'
 alias eclipse='eclipse-3.1 -vmargs -Xmx512m'
 alias gdb='gdb --quiet'
+alias gdbtui='gdbtui --quiet'
 alias grep='grep --colour=auto'
 alias ls='ls --color=auto'
 alias lynx='lynx -nopause -accept_all_cookies -use_mouse'
 alias minicom='minicom -w -c on'
 alias nslookup='nslookup -sil'
+alias quake4='quake4 +set s_driver oss'
+alias repoman='repoman -q -q'
 alias s='aspell -a'
 ss() { aspell -a <<<"$*"; }
+alias xine='xine -l'
 
 grep-svn() { find '(' -wholename '*/.svn' -prune -o -type f -print0 ')' | xargs -0 grep "$@" ; }
 
@@ -31,63 +38,10 @@ scrub_patch() {
         "$@"
 }
 
-cvs_gentoo_url() {
-_cvs_gentoo_url() {
-       if [[ -n $2 ]] ; then
-               echo "Usage: cvs_gentoo_url <file>[:rev1[:rev2]]"
-               return 1
-       fi
-
-       # spec has the form file:rev1[:rev2]
-       # rev2 defaults to rev1-1
-       export IFS=:
-       set -- $1
-       unset IFS
-
-       local file=$1
-       if [[ ! -e ${file} ]] ; then
-               echo "file '${file}' does not exist"
-               return 1
-       fi
-       local dir="."
-       [[ ${file} == */* ]] && dir=${file%/*}
-       file=${file##*/}
-
-       local rev2=$2
-       if [[ -z ${rev2} ]] ; then
-               rev2=$(
-                       cd ${dir}
-                       export IFS=/
-                       set -- $(grep /${file}/ CVS/Entries)
-                       unset IFS
-                       echo $3
-               )
-               if [[ ${rev2} == "0" ]] ; then
-                       # new file
-                       rev2="1.1"
-               else
-                       # existing file, bump rev automatically
-                       rev2="1.$((${rev2#1.}+1))"
-               fi
-       fi
-       local rev2r=${rev2#1.}
-       local rev1=${3:-1.$((rev2r - 1))}
-
-       local cvsroot=$(<${dir}/CVS/Repository)
-       if [[ ${cvsroot} == gentoo-x86* ]] ; then
-               cvsroot=${cvsroot#gentoo-x86}
-               cvsroot=${cvsroot#/}
-       fi
-
-       local urirev
-       [[ ${rev2} == "1.1" || ${rev1} == "${rev2}" ]] \
-               && urirev="?rev=${rev2}" \
-               || urirev="?r1=${rev1}&r2=${rev2}"
-       echo "http://sources.gentoo.org/${cvsroot}/${file}${urirev}"
-}
-       local f
-       for f in "$@" ; do
-               _cvs_gentoo_url "${f}"
-       done
-       unset _cvs_gentoo_url
+scrub_html() {
+       sed -i \
+               -e 's:&lt;:<:g' -e 's:&gt;:>:g' \
+               -e 's:&nbsp;::g' -e 's:&amp;:\&:g' \
+               -e 's:&quot;:":g' \
+               "$@"
 }