diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ranger.1 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1 index b197d774..39c33973 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -33,9 +33,9 @@ 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 +--fail-unless-cd 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. +`ranger --fail-unless-cd filename`. This can be useful for scripts. .TP -r \fIdir\fR, --confdir=\fIdir\fR Define a different configuration directory. The default is $HOME/.ranger. @@ -176,7 +176,7 @@ of your parent shell after exiting ranger: .nf ranger() { - command ranger --fail-if-run $@ && + command ranger --fail-unless-cd $@ && cd "$(grep \\^\\' ~/.ranger/bookmarks | cut -b3-)" } .\"----------------------------------------- |