
The new next-in-path utility function finds the next entry for the wrapped name in PATH after the called script, instead of hardcoding the usual location for a system install.
5 lines
159 B
Bash
Executable file
5 lines
159 B
Bash
Executable file
#!/bin/zsh
|
|
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
|
export RIPGREP_CONFIG_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/ripgreprc
|
|
$(next-in-path rg $0) $@
|