summary refs log tree commit diff stats
path: root/doc/ranger.1
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-27 01:11:34 +0200
committerhut <hut@lavabit.com>2010-04-27 01:11:34 +0200
commite5112bfe57e7a8176e8d7d3fe27d442d3262cd88 (patch)
treeb5b07e826d6561580a3f69ebc57655827e4e1fb8 /doc/ranger.1
parentaf2c87a88b5fb34cd5d5a385bc79e71643f582e1 (diff)
parent2e631f441dc2cc89cbdf8744ee31b98112b2395d (diff)
downloadranger-e5112bfe57e7a8176e8d7d3fe27d442d3262cd88.tar.gz
Merge branch 'master' into cp
Conflicts:
	ranger/ext/shutil_generatorized.py
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-)"
 }
 .\"-----------------------------------------