Commits

Takafumi Arakaki  committed 787d4ae

adapted zaw-z.sh to the new version of z.

  • Participants
  • Parent commits 89418f5

Comments (0)

Files changed (1)

 function zaw-src-z() {
     # see http://stackoverflow.com/questions/452290/ for IFS trick
     IFS=$(echo -n -e "\0")
-    : ${(A)candidates::=$(z 2>&1 | sed -n -e '2,$p' \
+    : ${(A)candidates::=$(z \
         | sed -e 's/^[0-9\\. ]*//' -e 's/ /\\ /g' -e "s#^$HOME#~#" \
         | tac | tr '\n' '\0')}
     unset IFS