diff options
author | hut <hut@lavabit.com> | 2009-12-26 00:03:50 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-26 00:03:50 +0100 |
commit | ae57e58776adca204f021df6f84c9c54541bcbc4 (patch) | |
tree | 0a83db9609ddb9c7a8e21eb4a63b93b893216a75 | |
parent | fb27507912b6e1a7b846f5f9d63da8ed41ea958b (diff) | |
download | ranger-ae57e58776adca204f021df6f84c9c54541bcbc4.tar.gz |
shorten comment in ranger.py
-rw-r--r-- | doc/cd-after-exit.txt | 4 | ||||
-rwxr-xr-x | ranger.py | 16 |
2 files changed, 9 insertions, 11 deletions
diff --git a/doc/cd-after-exit.txt b/doc/cd-after-exit.txt index 18598cd3..567c20ff 100644 --- a/doc/cd-after-exit.txt +++ b/doc/cd-after-exit.txt @@ -113,6 +113,10 @@ or, if properly installed: bash$ source ranger ranger +A convenient way of using this feature is adding this line to your bashrc: + + alias rn='source ranger ranger' + == Open issues diff --git a/ranger.py b/ranger.py index a81d0422..4035536e 100755 --- a/ranger.py +++ b/ranger.py @@ -3,17 +3,11 @@ # ranger: Browse your files inside the terminal. # ----------------------------------------------------------------------------- -# An embedded shell script. Assuming this file is /usr/bin/ranger, -# this hack allows you to use the cd-after-exit feature by typing: -# source ranger ranger -# Now when you quit ranger, it should change the directory of the -# parent shell to where you have last been in ranger. -# Works with at least bash and zsh. -# -# A convenient way of using this feature is adding this line to your bashrc: -# alias rn='source ranger ranger' -# or, if ranger is not installed properly: -# alias rn='source /path/to/ranger.py /path/to/ranger.py' +# An embedded shell script. It allows you to change the directory +# of the parent shell to the last visited directory in ranger after exit. +# For more information, check out doc/cd-after-exit.txt +# To enable this, start ranger with: +# source /path/ranger /path/ranger """": if [ $1 ]; then RANGER="$1" |