#N/A Add ability to get Fish Shell history
This commit is contained in:
@@ -191,6 +191,12 @@ class Fish(Generic):
|
||||
def _get_history_line(self, command_script):
|
||||
return u'- cmd: {}\n when: {}\n'.format(command_script, int(time()))
|
||||
|
||||
def _script_from_history(self, line):
|
||||
if '- cmd: ' in line:
|
||||
return line.split('- cmd: ', 1)[1]
|
||||
else:
|
||||
return ''
|
||||
|
||||
def and_(self, *commands):
|
||||
return u'; and '.join(commands)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user