summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-13 12:17:46 +0200
committerhut <hut@lavabit.com>2010-04-13 12:17:46 +0200
commit12ddb42454baf3dbe620d2f6c13d6c0f0ce83423 (patch)
treed5a56da2040ba5faa3fee928c1bfd62d292fe641
parentd9d3243bdfeae03e7c4641bde73103748992b3dc (diff)
downloadranger-12ddb42454baf3dbe620d2f6c13d6c0f0ce83423.tar.gz
Fixed suggested cd-after-exit-script for zsh
-rw-r--r--README2
-rw-r--r--doc/ranger.12
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-)"
 }
 .\"-----------------------------------------