diff options
author | joe <joebodo@gmail.com> | 2012-04-13 14:30:20 -0400 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-06-07 01:45:38 +0200 |
commit | 20f386e57398a16146a6e58f2b6ba349ed9248dd (patch) | |
tree | 9e2f8b541370a5b2e54442951eb5f1ac76969de1 /ranger/defaults/commands.py | |
parent | f893d2feb5daa44ea7f0f1fdddcedc789d82644c (diff) | |
download | ranger-20f386e57398a16146a6e58f2b6ba349ed9248dd.tar.gz |
Extended aliases
Diffstat (limited to 'ranger/defaults/commands.py')
-rw-r--r-- | ranger/defaults/commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index 52a1d30e..db411436 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -86,11 +86,15 @@ class alias(Command): Copies the oldcommand as newcommand. """ + + context = 'browser' + resolve_macros = False + def execute(self): if not self.arg(1) or not self.arg(2): self.fm.notify('Syntax: alias <newcommand> <oldcommand>', bad=True) else: - self.fm.commands.alias(self.arg(1), self.arg(2)) + self.fm.commands.alias(self.arg(1), self.rest(2)) class cd(Command): """ |