summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-13 20:22:30 +0200
committerhut <hut@lavabit.com>2010-04-13 20:22:35 +0200
commitca654255893b32697923e0865b6762f26c6a86a4 (patch)
treed42b9f729d551929e7f1fb0bec886f2d67947d7e
parentc5d42b436afe9674a7f620c626592cff9a059981 (diff)
downloadranger-ca654255893b32697923e0865b6762f26c6a86a4.tar.gz
slightly different prompt for open-console
-rw-r--r--ranger/defaults/keys.py4
-rw-r--r--ranger/gui/widgets/console.py2
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()