From f97a310b32e4975777b83cbe54755d4b4268b8a6 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 16 Apr 2010 01:03:26 +0200 Subject: console: different prompt --- ranger/defaults/keys.py | 3 ++- ranger/gui/widgets/console.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 885bc438..9e8e19e2 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -257,7 +257,8 @@ def ctrl_c(arg): map(':', ';', fm.open_console(cmode.COMMAND)) map('>', fm.open_console(cmode.COMMAND_QUICK)) -map('!', 's', fm.open_console(cmode.OPEN)) +map('!', fm.open_console(cmode.OPEN, prompt='!')) +map('s', fm.open_console(cmode.OPEN, prompt='$')) map('r', fm.open_console(cmode.OPEN_QUICK)) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 9bd37c01..35e0b844 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -425,8 +425,6 @@ class OpenConsole(ConsoleWithTab): def init(self): self.history = self.histories[OPEN_HISTORY] - OpenConsole.prompt = "{0}@{1} $ ".format(self.env.username, - self.env.hostname) def execute(self): command, flags = self._parse() -- cgit 1.4.1-2-gfad0