summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/commands.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index bfe038c5..3fdf4ade 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -58,8 +58,8 @@ from ranger.api.commands import *
 
 alias('e', 'edit')
 alias('q', 'quit')
-alias('q!', 'quit!')
-alias('qall', 'quit!')
+alias('q!', 'quitall')
+alias('qall', 'quitall')
 
 class cd(Command):
 	"""
@@ -213,18 +213,27 @@ class quit(Command):
 		self.fm.tab_close()
 
 
-class quit_now(Command):
+class quitall(Command):
 	"""
-	:quit!
+	:quitall
 
 	Quits the program immediately.
 	"""
-	name = 'quit!'
 
 	def execute(self):
 		self.fm.exit()
 
 
+class quit_bang(quitall):
+	"""
+	:quit!
+
+	Quits the program immediately.
+	"""
+	name = 'quit!'
+	allow_abbrev = False
+
+
 class terminal(Command):
 	"""
 	:terminal