mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-18 16:50:42 +01:00
#788: Use uniq last tracker path for different users
This commit is contained in:
parent
629056077f
commit
2678adf981
@ -3,6 +3,7 @@ from ..system import init_output
|
|||||||
|
|
||||||
init_output()
|
init_output()
|
||||||
|
|
||||||
|
import getpass # noqa: E402
|
||||||
import os # noqa: E402
|
import os # noqa: E402
|
||||||
import json # noqa: E402
|
import json # noqa: E402
|
||||||
from tempfile import gettempdir # noqa: E402
|
from tempfile import gettempdir # noqa: E402
|
||||||
@ -27,7 +28,9 @@ def _get_shell_pid():
|
|||||||
|
|
||||||
def _get_not_configured_usage_tracker_path():
|
def _get_not_configured_usage_tracker_path():
|
||||||
"""Returns path of special file where we store latest shell pid."""
|
"""Returns path of special file where we store latest shell pid."""
|
||||||
return Path(gettempdir()).joinpath('thefuck.last_not_configured_run')
|
return Path(gettempdir()).joinpath(u'thefuck.last_not_configured_run_{}'.format(
|
||||||
|
getpass.getuser(),
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
def _record_first_run():
|
def _record_first_run():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user