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.
This commit is contained in:
Sanchayan Maity 2023-05-09 12:15:38 +05:30
parent 9e0a966191
commit 1b5a8f5edb
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -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_GENERATED_LENGTH 16
set -gx PASSWORD_STORE_CLIP_TIME 20 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 # Required for all environment variables to be set correctly, especially
# in tmux session service. # in tmux session service.
dbus-update-activation-environment --systemd --all dbus-update-activation-environment --systemd --all