X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=6a0e30c9f87c4e257df77b95683b92428e94b072;hb=6eed6ec8a51ca1e9f2f3f826fdfb44d51a64ebf9;hp=e722f764926159d4a596d2e21ff0fe07e32846b3;hpb=564fa8685764092d1d38d83272fc8b25e7eaa4a9;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index e722f76..6a0e30c 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -604,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' - }