changeset 504:1403bfc694e4

Add ripgrep configuration file
author zegervdv <zegervdv@me.com>
date Thu, 09 Dec 2021 09:06:14 +0100
parents 18c6eb4d5c71
children 38b7afc9e492
files dot_bashrc dot_config/ripgrep/ripgreprc dot_zshrc
diffstat 3 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dot_bashrc	Fri Dec 10 10:17:42 2021 +0100
+++ b/dot_bashrc	Thu Dec 09 09:06:14 2021 +0100
@@ -105,6 +105,8 @@
 export EDITOR=nvim
 export HGEDITOR=nvim
 
+export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
+
 stty > /dev/null
 
 # Options
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dot_config/ripgrep/ripgreprc	Thu Dec 09 09:06:14 2021 +0100
@@ -0,0 +1,11 @@
+# Only be case sensitive if a case is present
+--smart-case
+
+# Limit output
+--max-columns=150
+--max-columns-preview
+
+--type-add
+hdl:*.{sv,vhd,v}
+--type-add
+rtl:*.rtl.{sv,vhd}
--- a/dot_zshrc	Fri Dec 10 10:17:42 2021 +0100
+++ b/dot_zshrc	Thu Dec 09 09:06:14 2021 +0100
@@ -208,6 +208,8 @@
 export EDITOR=nvim
 export HGEDITOR=nvim
 
+export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
+
 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
 export FZF_DEFAULT_COMMAND='ag -g ""'
 [ -f ~/.zshrc.local ] && source ~/.zshrc.local