diff options
author | hut <hut@lavabit.com> | 2010-01-14 20:06:05 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-01-14 20:06:05 +0100 |
commit | a799e0aeb7a73d6e5aec33fe100a9823faa3c91d (patch) | |
tree | 840bb5fa9d817dc912f27cb0218aafeebccb632f | |
parent | 7687dd8dcea3c5be1d96ef2a2e6e6d961e49737e (diff) | |
download | ranger-a799e0aeb7a73d6e5aec33fe100a9823faa3c91d.tar.gz |
keys: s runs $SHELL instead of "bash"
-rw-r--r-- | ranger/defaults/keys.py | 2 | ||||
-rw-r--r-- | ranger/keyapi.py | 1 |
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 |