diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/README b/README index babcfbbb..80331dcb 100644 --- a/README +++ b/README @@ -78,6 +78,20 @@ or type Q to quit. To customize ranger, copy the files from ranger/defaults/ to ~/.config/ranger/ and modify them according to your wishes. +The author of ranger uses this function (in ~/.bashrc) to start ranger: +function ranger-cd { + before="$(pwd)" + python2.6 /the/path/to/ranger/ranger.py --fail-unless-cd "$@" || return 0 + after="$(grep \^\' ~/.config/ranger/bookmarks | cut -b3-)" + if [[ "$before" != "$after" ]]; then + cd "$after" + fi +} +bind '"\C-o":"ranger-cd\C-m"' + +This changes the directory after you close ranger and adds the shortcut +<CTRL-O> for starting ranger. + Troubleshooting, Getting Help ----------------------------- |