diff --git a/thefuck/utils.py b/thefuck/utils.py index e4df043d..9c01617f 100644 --- a/thefuck/utils.py +++ b/thefuck/utils.py @@ -219,14 +219,17 @@ def _xdg_dir(env, default): return dir + def cache_dir(): """Returns the user's XDG cache directory.""" return Path(_xdg_dir("XDG_CACHE_HOME", "~/.cache")) + def data_dir(): """Returns the user's XDG data directory.""" return Path(_xdg_dir("XDG_DATA_HOME", "~/.local/share")) + class Cache(object): """Lazy read cache and save changes at exit."""