1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

#412: Add _script_from_history for generic shell

This commit is contained in:
nvbn 2015-11-26 03:42:03 +08:00
parent b3e9b36bd1
commit d750d3d6d1

View File

@ -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'