golang: make ripgrep and fd ignore the vendor folder

This commit is contained in:
Charles Gould 2023-04-05 19:07:51 -04:00
parent 6cc1560a07
commit aad67c43a8
4 changed files with 7 additions and 0 deletions

1
fd/ignore Normal file
View File

@ -0,0 +1 @@
vendor/

3
fish/functions/rg.fish Normal file
View File

@ -0,0 +1,3 @@
function rg --wraps rg
command rg --ignore-file="$XDG_CONFIG_HOME/ripgrep/ignore" $argv
end

View File

@ -20,10 +20,12 @@ install_symlink() {
ln -fnsv "$srcdir" "$dstdir"
}
install_symlink "$ROOTDIR/fd" "$HOME/.config/fd"
install_symlink "$ROOTDIR/fish" "$HOME/.config/fish"
install_symlink "$ROOTDIR/git" "$HOME/.config/git"
install_symlink "$ROOTDIR/helix" "$HOME/.config/helix"
install_symlink "$ROOTDIR/nix" "$HOME/.config/nix"
install_symlink "$ROOTDIR/ripgrep" "$HOME/.config/ripgrep"
install_symlink "$ROOTDIR/sbt" "$HOME/.config/sbt"
echo

1
ripgrep/ignore Normal file
View File

@ -0,0 +1 @@
vendor/