From 4ed36f4e5b01d30ceb27ee6b2ab9fe40ab77da96 Mon Sep 17 00:00:00 2001 From: Daniel Bretoi Date: Wed, 18 Jun 2025 08:35:31 -0700 Subject: [PATCH] use relative source path $__fish_config_dir could be set to something completely different. but using a relative path here is safe either way. This way it can be sourced anywhere, even if the repo is just cloned in some random place. --- conf.d/based.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.d/based.fish b/conf.d/based.fish index f69e26a..fc9678c 100644 --- a/conf.d/based.fish +++ b/conf.d/based.fish @@ -1,4 +1,4 @@ # Load the based logger (for fish_postexec event) -source ~/.config/fish/functions/__based_log.fish +source (status dirname)/../functions/__based_log.fish # Load keybindings (↑ for smart history, Ctrl+g for fzf popup) -source ~/.config/fish/functions/based_user_key_bindings.fish +source (status dirname)/../functions/based_user_key_bindings.fish