summary refs log blame commit diff stats
path: root/INSTALL
blob: e61f63de33fa6a01dc23ac3a664e8a9dc42ea123 (plain) (tree)





























                                                                           
You can run ranger without installing by simply starting the executable
file ranger.py in the top directory of this package.


To install ranger, follow this instructions:

0. Make sure you have a recent version of python, including the
   curses module, which is the case if this shell command prints no errors:
   python -c 'import curses'


1. Copy the file "ranger.py" into any of the directories in the PATH
   environment variable, for example to "/usr/bin/ranger"


2. Copy the directory "ranger" into one of the python module search
   paths, for example to "/usr/lib/python2.6/site-packages/ranger".

   Ensure that the path is listed by the command:
   python -c 'import sys; print("\n".join(sys.path))'


3. Optionally, you can activate an extra feature: When you exit ranger,
   the directory of the current shell can be changed to the last visited
   directory in ranger.  To do so, add this alias to your shell rc file:

   alias rng="source ranger ranger"

   (Unfortunately this feature is shell dependent.  It has been
   successfully tested with bash and zsh only.)
="n">_thread.allocate_lock() locale.setlocale(locale.LC_ALL, 'en_US.utf8') blocked = False stringy = 'ใ‚‹ใงใ‹' stdscr = curses.initscr() curses.noecho() curses.cbreak() curses.halfdelay(3) stdscr.keypad(1) #curses.curs_set(0) stdscr.addstr(4, 0, stringy) stdscr.refresh() class ThreadTest(threading.Thread): def __init__(self, *a, **b): threading.Thread.__init__(self, *a, **b) self.killed = False def run(self): global stdscr global blocked for i in range(1,50): while blocked: time.sleep(0.1) blocked = True stdscr.addstr(1, 0, str(i)) stdscr.refresh() blocked = False time.sleep(0.1) if self.killed: raise SystemExit() def kill(self): self.killed = True thr = ThreadTest() thr.start() try: while 1: c = stdscr.getch() if c == ord('q'): raise while blocked: time.sleep(0.1) blocked = True stdscr.addstr(0, 0, str(c)) stdscr.refresh() blocked = False except Exception: thr.kill() raise finally: curses.nocbreak() stdscr.keypad(1) curses.echo() curses.endwin() # curses.curs_set(1)