From d750d3d6d1e94d0afb42c67561f7fbcd7faf2365 Mon Sep 17 00:00:00 2001 From: nvbn Date: Thu, 26 Nov 2015 03:42:03 +0800 Subject: [PATCH] #412: Add `_script_from_history` for generic shell --- thefuck/shells.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 9bd058c..ab38b58 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -90,6 +90,9 @@ class Generic(object): return quote(s) + def _script_from_history(self, line): + return line + class Bash(Generic): def app_alias(self, fuck): @@ -119,9 +122,6 @@ class Bash(Generic): def _get_history_line(self, command_script): return u'{}\n'.format(command_script) - def _script_from_history(self, line): - return line - def how_to_configure(self): if os.path.join(os.path.expanduser('~'), '.bashrc'): config = '~/.bashrc'