From 42cf435bb9a210e267584156abb0e435cf14a6e3 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 21 Jul 2009 02:15:13 +0200 Subject: make the cd-workaround more flexible --- code/help.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'code') diff --git a/code/help.rb b/code/help.rb index 11e3f0ae..bd6568c4 100644 --- a/code/help.rb +++ b/code/help.rb @@ -246,16 +246,17 @@ module Fm left with ranger. To use this feature, you have to start ranger with: - . /path/to/ranger + source /path/to/ranger /path/to/ranger - The dot and space at the start is important! + If you have ranger in your /usr/bin/, you can write: + source ranger ranger - of course you can create an alias in our ~/.bashrc - alias fm='. /path/to/ranger' + Of course you can create an alias in our ~/.bashrc + alias ranger='source ranger ranger' + + It's 2x ranger in "source ranger ranger" because shells are silly + and there was no other way to do it. - I use fm (which means filemanager) because it's quick to type - and because fm was the working title of ranger in the early days. - If you're inside ranger and decide to stay in the original directory after all, you can type tc or quit with ZX -- cgit 1.4.1-2-gfad0