From fab4dc542e9f2b0ee55a97046915894c9e5ae37b Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 13 Apr 2010 12:17:46 +0200 Subject: Fixed suggested cd-after-exit-script for zsh --- README | 2 +- doc/ranger.1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index 07837688..429aefa1 100644 --- a/README +++ b/README @@ -130,7 +130,7 @@ Tips Change the directory of your parent shell when you exit ranger: ranger() { - $(which ranger) $@ && + command ranger $@ && cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)" } diff --git a/doc/ranger.1 b/doc/ranger.1 index 9e1ab5a0..6adaf43f 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -169,7 +169,7 @@ of your parent shell after exiting ranger: .nf ranger() { - $(which ranger) $@ && + command ranger $@ && cd "$(grep \\^\\' ~/.ranger/bookmarks | cut -b3-)" } .\"----------------------------------------- -- cgit 1.4.1-2-gfad0