From 8397970bf83f7f0d62311ff4ff8a5e62d955e915 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 20 Aug 2021 08:54:41 +0530 Subject: [PATCH] Ensure fish config dir exists --- kitty/shell_integration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/shell_integration.py b/kitty/shell_integration.py index 997d0786b..a241c66f5 100644 --- a/kitty/shell_integration.py +++ b/kitty/shell_integration.py @@ -76,6 +76,7 @@ def atomic_symlink(destination: str, in_directory: str) -> str: def setup_fish_integration() -> None: base = os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')) base = os.path.join(base, 'fish') + os.makedirs(os.path.join(base, 'completions'), exist_ok=True) path = os.path.join(shell_integration_dir, 'kitty.fish') atomic_symlink(path, os.path.join(base, 'conf.d')) from .complete import completion_scripts