diff --git a/.config/ripgrep/config b/.config/ripgrep/config new file mode 100644 index 0000000..b7780b4 --- /dev/null +++ b/.config/ripgrep/config @@ -0,0 +1,7 @@ +# Loaded via RIPGREP_CONFIG_PATH (zsh/.zshrc, non-shared only). Hidden dirs +# (.venv, .claude, .codex) are skipped by default. -uu doesn't undo the +# globs: use --no-config. +--smart-case +--glob=!*venv/ +--glob=!node_modules/ +--glob=!__pycache__/ diff --git a/setup_arch.sh b/setup_arch.sh index 648636c..9a0427f 100755 --- a/setup_arch.sh +++ b/setup_arch.sh @@ -8,7 +8,7 @@ sudo pacman --needed -Sy archlinux-keyring --noconfirm sudo pacman --needed -Syu --noconfirm -sudo pacman --needed -Sy base-devel xorg xorg-xinit gnome gnome-extra neovim zsh tmux openssh alacritty powerline-fonts python-pip --noconfirm +sudo pacman --needed -Sy base-devel xorg xorg-xinit gnome gnome-extra neovim zsh tmux openssh alacritty powerline-fonts python-pip ripgrep --noconfirm cp $PWD/nvim/scheme.vim.template $PWD/nvim/scheme.vim cp $PWD/.config/alacritty/schemes.yml.template $PWD/.config/alacritty/schemes.yml pip3 install neovim diff --git a/setup_ubuntu.sh b/setup_ubuntu.sh index 953fe8f..f879d9d 100755 --- a/setup_ubuntu.sh +++ b/setup_ubuntu.sh @@ -9,7 +9,7 @@ shopt -s nullglob sudo apt -y update sudo apt -y dist-upgrade -sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim fzf +sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim fzf ripgrep sudo snap install --classic nvim # VMs: the guest agent lets the hypervisor read OS info (virsh guestinfo --os) diff --git a/zsh/.zshrc b/zsh/.zshrc index d3e937e..6b63cbc 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -61,6 +61,9 @@ if (( $+commands[fzf] && ! shared_config )); then fi unset _fzf_init fi +if (( ! shared_config )) && [[ -r ~/dotfiles/.config/ripgrep/config ]]; then + export RIPGREP_CONFIG_PATH=~/dotfiles/.config/ripgrep/config +fi export LIBVIRT_DEFAULT_URI="qemu:///system" if (( ! shared_config )); then