]>
git.wh0rd.org - home.git/blob - .profile.d/aliases.sh
1 [[ $
- != *i
* ]] && return
4 alias duh
='du . --max-depth=1 -h'
5 alias eclipse
='eclipse-3.1 -vmargs -Xmx512m'
6 alias gdb
='gdb --quiet'
7 alias grep='grep --colour=auto'
8 alias ls='ls --color=auto'
9 alias lynx
='lynx -nopause -accept_all_cookies -use_mouse'
10 alias minicom
='minicom -w -c on'
11 alias nslookup='nslookup -sil'
13 ss
() { aspell
-a <<<"$*"; }
15 grep-svn
() { find '(' -wholename '*/.svn' -prune -o -type f
-print0 ')' |
xargs -0 grep "$@" ; }
20 -e '/^new file mode /d' \
26 -e '/^Files .* differ$/d' \
28 -e '/^Common subdirectories/d' \
37 echo "Usage: cvs_gentoo_url <file>[:rev1[:rev2]]"
41 # spec has the form file:rev1[:rev2]
42 # rev2 defaults to rev1-1
48 if [[ ! -e ${file} ]] ; then
49 echo "file '${file}' does not exist"
53 [[ ${file} == */* ]] && dir
=${file%/*}
57 if [[ -z ${rev2} ]] ; then
61 set -- $
(grep /${file}/ CVS
/Entries
)
65 if [[ ${rev2} == "0" ]] ; then
69 # existing file, bump rev automatically
70 rev2
="1.$((${rev2#1.}+1))"
73 local rev2r
=${rev2#1.}
74 local rev1
=${3:-1.$((rev2r - 1))}
76 local cvsroot
=$
(<${dir}/CVS
/Repository
)
77 if [[ ${cvsroot} == gentoo-x86
* ]] ; then
78 cvsroot
=${cvsroot#gentoo-x86}
83 [[ ${rev2} == "1.1" || ${rev1} == "${rev2}" ]] \
84 && urirev="?
rev=${rev2}" \
85 || urirev="?r1
=${rev1}&r2
=${rev2}"
86 echo "http
://sources.gentoo.org
/${cvsroot}/${file}${urirev}"
90 _cvs_gentoo_url "${f}"