[[ $- != *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 "$@" ; }
"$@"
}
-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:<:<:g' -e 's:>:>:g' \
+ -e 's: ::g' -e 's:&:\&:g' \
+ -e 's:":":g' \
+ "$@"
}