mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 07:10:52 +01:00
fix: fish history file location
This commit is contained in:
parent
841e3f9e13
commit
6512c8da4e
@ -9,3 +9,4 @@ pypandoc
|
||||
pytest-benchmark
|
||||
pytest-docker-pexpect
|
||||
twine
|
||||
xdg
|
||||
|
@ -8,6 +8,7 @@ from ..conf import settings
|
||||
from ..const import ARGUMENT_PLACEHOLDER
|
||||
from ..utils import DEVNULL, cache
|
||||
from .generic import Generic
|
||||
from xdg import xdg_data_home
|
||||
|
||||
|
||||
@cache('~/.config/fish/config.fish', '~/.config/fish/functions')
|
||||
@ -83,7 +84,7 @@ class Fish(Generic):
|
||||
return command_script
|
||||
|
||||
def _get_history_file_name(self):
|
||||
return os.path.expanduser('~/.config/fish/fish_history')
|
||||
return xdg_data_home().joinpath("fish").joinpath("fish_history")
|
||||
|
||||
def _get_history_line(self, command_script):
|
||||
return u'- cmd: {}\n when: {}\n'.format(command_script, int(time()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user