From ca654255893b32697923e0865b6762f26c6a86a4 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 13 Apr 2010 20:22:30 +0200 Subject: slightly different prompt for open-console --- ranger/defaults/keys.py | 4 ++-- ranger/gui/widgets/console.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 03b7e2d3..0c805cb6 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -110,7 +110,7 @@ def initialize_commands(map): ', or //l// to create symlinks') # ---------------------------------------------------- run programs - map('s', fm.execute_command(os.environ['SHELL'])) + map('S', fm.execute_command(os.environ['SHELL'])) map('E', fm.edit_file()) map(',term', fm.execute_command('x-terminal-emulator', flags='d')) map('du', fm.execute_command('du --max-depth=1 -h | less')) @@ -224,7 +224,7 @@ def initialize_commands(map): map(':', ';', fm.open_console(cmode.COMMAND)) map('>', fm.open_console(cmode.COMMAND_QUICK)) - map('!', fm.open_console(cmode.OPEN)) + map('!', 's', fm.open_console(cmode.OPEN)) map('r', fm.open_console(cmode.OPEN_QUICK)) map.rebuild_paths() diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 03f61ddf..0da5cba3 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -419,6 +419,8 @@ 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