diff options
author | Matt Cable <wozz@wookie.net> | 2010-09-21 12:07:02 -0600 |
---|---|---|
committer | Matt Cable <wozz@wookie.net> | 2010-09-21 12:07:02 -0600 |
commit | 2ff567e16267274041f542b5bce18876b8815fca (patch) | |
tree | cacf5eb6f1afa887e04a0232ff325e527cec5ab2 | |
parent | 8f7609b4fabd3d02e3991221cbe35bea692c22e3 (diff) | |
download | zsh-2ff567e16267274041f542b5bce18876b8815fca.tar.gz zsh-2ff567e16267274041f542b5bce18876b8815fca.tar.bz2 zsh-2ff567e16267274041f542b5bce18876b8815fca.zip |
Removed unportable (and unnecessary) grep flags
-rw-r--r-- | plugins/dirpersist.plugin.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/dirpersist.plugin.zsh b/plugins/dirpersist.plugin.zsh index 5b3fdfb3d..b5e825bff 100644 --- a/plugins/dirpersist.plugin.zsh +++ b/plugins/dirpersist.plugin.zsh @@ -9,7 +9,7 @@ zdirstore=~/.zdirstore dirpersistinstall () { - if grep -qL 'dirpersiststore' ~/.zlogout; then + if grep 'dirpersiststore' ~/.zlogout > /dev/null; then else if read -q \?"Would you like to set up your .zlogout file for use with dirspersist? (y/n) "; then echo "# Store dirs stack\n# See ~/.oh-my-zsh/plugins/dirspersist.plugin.zsh\ndirpersiststore" >> ~/.zlogout @@ -19,6 +19,7 @@ dirpersistinstall () { fi } +# FIXME solaris doesn't support tail -r dirpersiststore () { dirs -p | tail -r | perl -ne 'chomp;s/([& ])/\\$1/g ;print "if [ -d $_ ]; then pushd -q $_; fi\n"' > $zdirstore } |