From 2678adf981214ab92dd879b0b2069982d45c89e9 Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Fri, 23 Feb 2018 20:42:00 +0100 Subject: [PATCH] #788: Use uniq last tracker path for different users --- thefuck/entrypoints/not_configured.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thefuck/entrypoints/not_configured.py b/thefuck/entrypoints/not_configured.py index a8cc248..f5d7e85 100644 --- a/thefuck/entrypoints/not_configured.py +++ b/thefuck/entrypoints/not_configured.py @@ -3,6 +3,7 @@ from ..system import init_output init_output() +import getpass # noqa: E402 import os # noqa: E402 import json # noqa: E402 from tempfile import gettempdir # noqa: E402 @@ -27,7 +28,9 @@ def _get_shell_pid(): def _get_not_configured_usage_tracker_path(): """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():