From ca72852c0f0282570d8ff54e767cc350513e1dba Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Wed, 15 Feb 2023 16:32:47 -0500 Subject: [PATCH] Add check for `fish_add_path` before calling it --- config.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.fish b/config.fish index 1e10dc1..e7a1e96 100644 --- a/config.fish +++ b/config.fish @@ -70,7 +70,10 @@ set fish_key_bindings fish_default_key_bindings set VIRTUAL_ENV_DISABLE_PROMPT true -fish_add_path -aP ~/.local/bin +# Add '~/.local/bin' using 'fish_add_path' (Only available in Fish 3.2.X and above) +if type fish_add_path &> /dev/null + fish_add_path -aP ~/.local/bin +end ########### # Aliases #