mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-28 07:48:48 +00:00
#412: Add _script_from_history
for generic shell
This commit is contained in:
parent
b3e9b36bd1
commit
d750d3d6d1
@ -90,6 +90,9 @@ class Generic(object):
|
|||||||
|
|
||||||
return quote(s)
|
return quote(s)
|
||||||
|
|
||||||
|
def _script_from_history(self, line):
|
||||||
|
return line
|
||||||
|
|
||||||
|
|
||||||
class Bash(Generic):
|
class Bash(Generic):
|
||||||
def app_alias(self, fuck):
|
def app_alias(self, fuck):
|
||||||
@ -119,9 +122,6 @@ class Bash(Generic):
|
|||||||
def _get_history_line(self, command_script):
|
def _get_history_line(self, command_script):
|
||||||
return u'{}\n'.format(command_script)
|
return u'{}\n'.format(command_script)
|
||||||
|
|
||||||
def _script_from_history(self, line):
|
|
||||||
return line
|
|
||||||
|
|
||||||
def how_to_configure(self):
|
def how_to_configure(self):
|
||||||
if os.path.join(os.path.expanduser('~'), '.bashrc'):
|
if os.path.join(os.path.expanduser('~'), '.bashrc'):
|
||||||
config = '~/.bashrc'
|
config = '~/.bashrc'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user