summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-16 01:03:26 +0200
committerhut <hut@lavabit.com>2010-04-16 01:03:26 +0200
commitf97a310b32e4975777b83cbe54755d4b4268b8a6 (patch)
tree41a5255ddc5ef53e175bdd653fa3d46d8146de5b
parent48a8eab54d594128eea3a1a2c0e9a4809d21d4dc (diff)
downloadranger-f97a310b32e4975777b83cbe54755d4b4268b8a6.tar.gz
console: different prompt
-rw-r--r--ranger/defaults/keys.py3
-rw-r--r--ranger/gui/widgets/console.py2
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()
itter Kartik Agaram <vc@akkartik.com> 2019-02-14 16:24:20 -0800 4961' href='/akkartik/mu/commit/subx/opcodes?h=hlt&id=1639687ba098aa81b0584f7dd609cb9690dc5a04'>1639687b ^
5c26afb1 ^
417a05ee ^
5f3b3e7a ^
417a05ee ^
f15fcfe8 ^
417a05ee ^

a78deb23 ^
417a05ee ^
0c7f08ce ^

f15fcfe8 ^

469a1a9a ^
0c7f08ce ^




15655a12 ^









417a05ee ^
924ed08a ^
417a05ee ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117