]> Sergey Matveev's repositories - schwabrak.git/blobdiff - lib.zsh.rc
No Perl dependency for relative path calculation
[schwabrak.git] / lib.zsh.rc
index fcb1cd385fd6cb823a2ed8791e66450182193ece9ac08151d5a0df98ab85a19f..e4b582ba06148b347ba523054814dfef7be95e9386502ddffd3670f6198dc170 100644 (file)
@@ -10,9 +10,7 @@ die() {
 
 [[ -d issues ]] || die You must run that command in directory with issues/
 
-relpath() {
-    $PERL -mFile::Spec -le "print File::Spec->abs2rel(@ARGV)" $1:a $2:a
-}
+autoload -Uz relative
 
 endash() {
     $PERL -npe 's/(-+)/$1-/g ; s/ /-/g'