summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/ext/rifle.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index a8d8bee7..eadbc110 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -354,6 +354,12 @@ class Rifle(object):
                         term = os.environ['TERM']
                         if term.startswith('rxvt-unicode'):
                             term = 'urxvt'
+                        elif term.startswith('rxvt-'):
+                            # Sometimes urxvt calls itself "rxvt-256color"
+                            if 'rxvt' in get_executables():
+                                term = 'rxvt'
+                            else:
+                                term = 'urxvt'
                         if term not in get_executables():
                             self.hook_logger("Can not determine terminal command.  "
                                 "Please set $TERMCMD manually.")