From 97525dd0e280b34c8ff6cf0606629f0f8fcf6439 Mon Sep 17 00:00:00 2001 From: Daniel Bretoi Date: Thu, 19 Jun 2025 08:00:46 +0700 Subject: [PATCH] use relative source path (#1) $__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