mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Manpage completions: store in $XDG_DATA_HOME
Closes #1343, works towards #1257.
This commit is contained in:
@@ -973,7 +973,8 @@ if __name__ == "__main__":
|
||||
if not WRITE_TO_STDOUT and not output_directory:
|
||||
# Default to ~/.config/fish/generated_completions/
|
||||
# Create it if it doesn't exist
|
||||
output_directory = os.path.expanduser('~/.config/fish/generated_completions/')
|
||||
xdg_data_home = os.getenv('XDG_DATA_HOME', '~/.local/share')
|
||||
output_directory = os.path.expanduser(xdg_data_home + '/fish/generated_completions/')
|
||||
try:
|
||||
os.makedirs(output_directory)
|
||||
except OSError as e:
|
||||
|
||||
Reference in New Issue
Block a user