Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
--- /usr/share/zsh/4.3.4/functions/_canonical_paths.org 2008-02-27 02:32:45.000000000 +0100 +++ /usr/share/zsh/4.3.4/functions/_canonical_paths 2008-02-27 02:33:56.000000000 +0100 @@ -38,7 +38,7 @@ if (( $__opts[(I)-N] )); then files=($@) else for __index in $@; do - files+=$(readlink -qf $__index) + files+=$(greadlink -qf $__index) done fi @@ -48,7 +48,7 @@ _canonical_paths_add_paths () { expref=${~origpref} [[ $origpref == (|*/). ]] && rltrim=. curpref=${${expref%$rltrim}:-./} - canpref=$(readlink -qf $curpref) + canpref=$(greadlink -qf $curpref) if [[ $? -eq 0 ]]; then [[ $curpref == */ && $canpref == *[^/] ]] && canpref+=/ canpref+=$rltrim
This paste will be private.
From the Design Piracy series on my blog: