mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 00:40:07 +00:00
Removed unportable (and unnecessary) grep flags
This commit is contained in:
parent
8f7609b4fa
commit
2ff567e162
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue