Skip to content

Commit

Permalink
Fix sed errors on OSX, without breaking ubuntu
Browse files Browse the repository at this point in the history
h/t @Keithbsmiley. Closes #125
  • Loading branch information
rupa committed Feb 5, 2014
1 parent 575cada commit 5741d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z.sh
Expand Up @@ -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";;
Expand Down

0 comments on commit 5741d90

Please sign in to comment.