10 lines
275 B
Bash
Executable file
10 lines
275 B
Bash
Executable file
#!/bin/zsh
|
|
#dep:rg
|
|
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
|
|
RIPGREP_CONFIG_PATH=${XDG_CONFIG_HOME:-$HOME/.config}/ripgreprc
|
|
if [[ -e $RIPGREP_CONFIG_PATH ]]; then
|
|
export RIPGREP_CONFIG_PATH
|
|
fi
|
|
next=$(next-in-path rg $0)
|
|
if (( $? != 0 )); then exit 1; fi
|
|
$next $@
|