X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=57bbbb96dd0af281b0b985043e6fdb1111c60994;hb=7c4b6b5094b2c0e7767b8de927af3c71ca0daf15;hp=49f77e04b3f6855cc78cce24da9d16cd8557d42e;hpb=4407c3ab549edaa76d5c6b49b335e513f6ca92b9;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 49f77e0..57bbbb9 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -273,6 +273,7 @@ debbug() { esac else print "$0 needs one argument" + return 1 fi } #f4# Search Debian Bug Tracking System @@ -603,39 +604,6 @@ show-archive() { fi } -# TODO: isn't ssl() like this, but clean? -# I'd like to remove this, it's a gross hack, IMHO -ft -#f5# Follow symlinks -folsym() { - if [[ -e $1 || -h $1 ]] ; then - file=$1 - else - file=`which $1` - fi - if [[ -e $file || -L $file ]] ; then - if [[ -L $file ]] ; then - echo `ls -ld $file | perl -ane 'print $F[7]'` '->' - folsym `perl -le '$file = $ARGV[0]; - $dest = readlink $file; - if ($dest !~ m{^/}) { - $file =~ s{(/?)[^/]*$}{$1$dest}; - } else { - $file = $dest; - } - $file =~ s{/{2,}}{/}g; - while ($file =~ s{[^/]+/\.\./}{}) { - ; - } - $file =~ s{^(/\.\.)+}{}; - print $file' $file` - else - ls -d $file - fi - else - echo $file - fi -} - # It's shameless stolen from #f5# Use \kbd{vim} as your manpage reader vman() { man $* | col -b | view -c 'set ft=man nomod nolist' - } @@ -1096,6 +1064,7 @@ fluxkey-change() { weather() { [[ -n "$1" ]] || { print 'Usage: weather ' >&2 + print 'List of stations: http://en.wikipedia.org/wiki/List_of_airports_by_ICAO_code'>&2 return 1 }