Fix sed errors on OSX, without breaking ubuntu

h/t @Keithbsmiley. Closes #125
This commit is contained in:
rupa committed 2014-02-05 18:04:38 -05:00
1 parent 575cada5e9
commit 5741d9044d
1 file changed
+1 -1
+1 -1
View File
@@ -107,7 +107,7 @@ _z() {
-*) local opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in
c) local fnd="^$PWD $fnd";;
h) echo "${_Z_CMD:-z} [-chlrtx] args" >&2; return;;
x) sed -i "\:^${PWD}|.*:d" "$datafile";;
x) sed -i -e "\:^${PWD}|.*:d" "$datafile";;
l) local list=1;;
r) local typ="rank";;
t) local typ="recent";;