From 985a237cd89de20d4aba6aee2b45c74afcc2380b Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Fri, 23 Oct 2026 17:48:36 +0200 Subject: [PATCH] [RG][ZSH] Add ripgrep config skipping *venv dirs Co-Authored-By: Claude Opus 5.5 --- .config/ripgrep/config | 6 ++++++ setup_arch.sh | 2 +- setup_mac.sh | 2 +- zsh/.zshrc | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .config/ripgrep/config diff --git a/.config/ripgrep/config b/.config/ripgrep/config new file mode 100644 index 0000000..f56d51c --- /dev/null +++ b/.config/ripgrep/config @@ -0,0 +1,6 @@ +# Loaded via RIPGREP_CONFIG_PATH (zsh/.zshrc). Hidden dirs (.venv, .claude, +# .codex) are skipped by default; -uu searches everything. +--smart-case +--glob=!*venv/ +--glob=!node_modules/ +--glob=!__pycache__/ diff --git a/setup_arch.sh b/setup_arch.sh index 71bad6c..864316a 100755 --- a/setup_arch.sh +++ b/setup_arch.sh @@ -9,7 +9,7 @@ set -e sudo pacman --needed -Sy archlinux-keyring --noconfirm sudo pacman --needed -Syu --noconfirm -sudo pacman --needed -Sy base-devel gnome neovim zsh tmux openssh alacritty powerline-fonts otf-firamono-nerd prettier python-pip python-pynvim atuin --noconfirm +sudo pacman --needed -Sy base-devel gnome neovim zsh tmux openssh alacritty powerline-fonts otf-firamono-nerd prettier python-pip python-pynvim atuin ripgrep --noconfirm ./clone_and_link.sh ./copy_fonts_arch.sh diff --git a/setup_mac.sh b/setup_mac.sh index 7219769..617d1d5 100755 --- a/setup_mac.sh +++ b/setup_mac.sh @@ -6,7 +6,7 @@ # Distributed under terms of the MIT license. # -brew install neovim tmux coreutils cmake golang jq npm prettier virtualenvwrapper fzf atuin git-delta skills +brew install neovim tmux coreutils cmake golang jq npm prettier virtualenvwrapper fzf atuin git-delta ripgrep skills brew install --cask font-fira-mono-nerd-font 1password-cli ./install_alacritty_mac.sh BREW_PREFIX="$(brew --prefix)" diff --git a/zsh/.zshrc b/zsh/.zshrc index 009f134..03b2abd 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -73,6 +73,8 @@ if (( $+commands[atuin] )); then fi _zst_mark atuin +export RIPGREP_CONFIG_PATH=~/dotfiles/.config/ripgrep/config + [[ -f ~/.zsh/.mac_config.zsh ]] && source ~/.zsh/.mac_config.zsh _zst_mark mac-config # deps: go binary and `go env -w` files (macOS, Linux)