Merge pull request #380 from zhangxffff/fix_alacritty_config

Fix alacritty config path mismatch with it's doc
This commit is contained in:
Mgldvd 2023-05-05 12:29:17 -05:00 committed by GitHub
commit 942d34d4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,10 @@ def get_conf_path():
home = os.getenv('HOME')
if home is not None and os.path.exists(home + '/.config/alacritty/alacritty.yml'):
return home + "/.config/alacritty/alacritty.yml"
if home is not None and os.path.exists(home + '/.config/alacritty.yml'):
return home + "/.config/alacritty.yml"
if home is not None and os.path.exists(home + 'alacritty.yml'):
return home + "/alacritty.yml"
if home is not None and os.path.exists(home + '/.config/alacritty/alacritty.yml'):
return home + "/.config/alacritty/alacritty.yml"
if home is not None and os.path.exists(home + '/.alacritty.yml'):
return home + "/.alacritty.yml"
print("Could not find alacritty config file\nPlease make sure you have a file in one of the paths specified on\nhttps://github.com/alacritty/alacritty#configuration")
sys.exit(1)