#N/A Add ability to get Fish Shell history

This commit is contained in:
Pablo Santiago Blum de Aguiar
2015-11-22 01:57:20 -02:00
parent 465f6191b0
commit 4a7b335d7c
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -180,6 +180,11 @@ class TestFish(object):
assert 'thefuck' in shell.app_alias('fuck')
assert 'TF_ALIAS' in shell.app_alias('fuck')
def test_get_history(self, history_lines, shell):
history_lines(['- cmd: ls', ' when: 1432613911',
'- cmd: rm', ' when: 1432613916'])
assert list(shell.get_history()) == ['ls', 'rm']
@pytest.mark.usefixtures('isfile')
class TestZsh(object):