xdg-wrappers: add mbsync, make wrappers use next-in-path
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.
This commit is contained in:
parent
761b7700ab
commit
e43c38c529
4 changed files with 19 additions and 0 deletions
4
xdg-wrappers/rg
Executable file
4
xdg-wrappers/rg
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/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) $@
|
Loading…
Add table
Add a link
Reference in a new issue