about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/keys.py2
-rw-r--r--ranger/keyapi.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 69af689d..3846850e 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -96,7 +96,7 @@ def initialize_commands(command_list):
 			', or //l// to create symlinks')
 
 	# ---------------------------------------------------- run programs
-	bind('s', fm.execute_command('bash'))
+	bind('s', fm.execute_command(os.environ['SHELL']))
 	bind('E', fm.edit_file())
 	bind('term', fm.execute_command('x-terminal-emulator', flags='d'))
 	bind('du', fm.execute_command('du --max-depth=1 -h | less'))
diff --git a/ranger/keyapi.py b/ranger/keyapi.py
index 15be9a7c..9cbe3612 100644
--- a/ranger/keyapi.py
+++ b/ranger/keyapi.py
@@ -12,6 +12,7 @@
 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
+import os
 from curses import *
 from curses.ascii import *
 from inspect import getargspec, ismethod
m <vc@akkartik.com> 2015-07-13 22:50:49 -0700 1780 - now we always reclaim local scopes' href='/akkartik/mu/commit/factorial.mu?h=main&id=77d5b5d658830bd24724f945e0d6ddf6a06adc0e'>77d5b5d6 ^
4a48bedc ^
984a6321 ^





c1d92c9d ^
192d59d3 ^

32241605 ^
b96af395 ^
08b48a8d ^
b96af395 ^


192d59d3 ^
b96af395 ^
bafc7192 ^
b96af395 ^


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