about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-30 02:45:51 +0200
committerhut <hut@lavabit.com>2010-05-30 02:45:51 +0200
commit40fcbc3d8bde9dd226f0d2fe16cf4126bdcc02c7 (patch)
tree8a99224cb6eaead06761eee63f2616df782196a0
parentf01238dc2a9ee6675a977ee0c1c5253ad489f3fa (diff)
downloadranger-40fcbc3d8bde9dd226f0d2fe16cf4126bdcc02c7.tar.gz
main: default value for $SHELL = 'bash'
-rw-r--r--ranger/__main__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/__main__.py b/ranger/__main__.py
index 61e6c3a2..5f525582 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -161,6 +161,9 @@ def main():
 	try: locale.setlocale(locale.LC_ALL, '')
 	except: print("Warning: Unable to set locale.  Expect encoding problems.")
 
+	if not 'SHELL' in os.environ:
+		os.environ['SHELL'] = 'bash'
+
 	arg = parse_arguments()
 	ranger.arg = arg