From 1b5a8f5edb8fedab5c367cd6f677f06d62217834 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 9 May 2023 12:15:38 +0530 Subject: [PATCH] fish: conf.d/setup: Set ripgrep config file path ripgrep will not look in any predetermined directory for a config file automatically. Instead, we need to set the RIPGREP_CONFIG_PATH environment variable to the file path of our config file. --- fish/.config/fish/conf.d/setup.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fish/.config/fish/conf.d/setup.fish b/fish/.config/fish/conf.d/setup.fish index 35406b4..83d9516 100644 --- a/fish/.config/fish/conf.d/setup.fish +++ b/fish/.config/fish/conf.d/setup.fish @@ -51,6 +51,9 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi set -gx PASSWORD_STORE_GENERATED_LENGTH 16 set -gx PASSWORD_STORE_CLIP_TIME 20 + # Ripgrep requires this environment variable for knowing the config file path + set -gx RIPGREP_CONFIG_PATH {$HOME}/.config/ripgrep/ripgreprc + # Required for all environment variables to be set correctly, especially # in tmux session service. dbus-update-activation-environment --systemd --all