X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=.profile.d%2Faliases.sh;h=6fe1663f88d66f85176d4fcb812c0018753e8832;hb=63d15f5806d8a342bf72a963a1b8573b24e30ab8;hp=479b8f765798979cce210a1116345eddd3e4db9c;hpb=5b61754dc15ad3f7c19e83aecc4a921e6f8fa5df;p=home.git diff --git a/.profile.d/aliases.sh b/.profile.d/aliases.sh index 479b8f7..6fe1663 100644 --- a/.profile.d/aliases.sh +++ b/.profile.d/aliases.sh @@ -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 eclipse='eclipse-3.2 -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 [: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' \ + "$@" }