From f993c9c81bff45de69370e73c107d9bf3edc2552 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 10 Oct 2018 13:44:24 +0200 Subject: [PATCH] fisher updated to v3, add config directive and installer function --- .config/fish/config.fish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 9c801fb..4490406 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,6 +1,15 @@ # Set editor to vim set EDITOR vim +set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config + +if not functions -q fisher + echo "Installing fisher for the first time..." >&2 + set -q XDG_CONFIG_HOME; or set XDG_CONFIG_HOME ~/.config + curl https://git.io/fisher --create-dirs -sLo $XDG_CONFIG_HOME/fish/functions/fisher.fish + fisher +end + # Virtualenv support with virtualfish eval (python3 -m virtualfish compat_aliases)