summary refs log tree commit diff stats
path: root/doc/ranger.1
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-26 13:32:40 +0200
committerhut <hut@lavabit.com>2010-04-26 20:57:40 +0200
commit83868c7aa8ca35d9d0c1606dd62b44e97bd7e356 (patch)
tree60ba5092dfa274632f5c6da3d45b758bcb6386ce /doc/ranger.1
parentf3bc52e556867d00fa1ba51f9dc93a2cde75b15b (diff)
downloadranger-83868c7aa8ca35d9d0c1606dd62b44e97bd7e356.tar.gz
Fixed bug #65 by adding flag "--fail-if-run"
Diffstat (limited to 'doc/ranger.1')
-rw-r--r--doc/ranger.16
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1
index 68353dd9..b197d774 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -33,6 +33,10 @@ Activate the clean mode:  Ranger will not access or create any configuration
 files nor will it leave any traces on your system.  This is useful when
 your configuration is broken, when you want to avoid clutter, etc.
 .TP
+--fail-if-run
+Return the exit code 1 if ranger is used to run a file, for example with
+`ranger --fail-if-run filename`.  This can be useful for scripts.
+.TP
 -r \fIdir\fR, --confdir=\fIdir\fR
 Define a different configuration directory.  The default is $HOME/.ranger.
 .TP
@@ -172,7 +176,7 @@ of your parent shell after exiting ranger:
 .nf
 
 ranger() {
-    command ranger $@ &&
+    command ranger --fail-if-run $@ &&
     cd "$(grep \\^\\' ~/.ranger/bookmarks | cut -b3-)"
 }
 .\"-----------------------------------------