feat(ripgrep): add config

This commit is contained in:
Pavel Korytov 2021-10-13 10:49:03 +03:00
parent a19a36e2d3
commit 53692feda0
4 changed files with 23 additions and 6 deletions

View file

@ -0,0 +1 @@
*.ts.snap

View file

@ -0,0 +1 @@
--ignore-file=/home/pavel/.config/ripgrep/ripgrepignore

View file

@ -1,11 +1,12 @@
# [[file:Console.org::*Environment][Environment:1]]
# export EDITOR=/usr/bin/vim
# export BROWSER=/usr/bin/firefox
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_AUTO_SCREEN_SCALE_FACTOR=0
# export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
# Environment:1 ends here
# [[file:Console.org::*Environment][Environment:2]]
export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
# Environment:2 ends here
# [[file:Console.org::*My paths][My paths:1]]
if [ -d "$HOME/bin" ] ; then
export PATH="$HOME/bin:$PATH"

View file

@ -53,11 +53,13 @@
:END:
** Environment
#+begin_src sh
# export EDITOR=/usr/bin/vim
# export BROWSER=/usr/bin/firefox
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_AUTO_SCREEN_SCALE_FACTOR=0
# export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#+end_src
Set ripgrep config path
#+begin_src sh
export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
#+end_src
** My paths
My script folders
@ -843,6 +845,18 @@ key_bindings:
| jmtpfs | A tool to mount MTP devices (e.g. Android) |
| tokei | Count lines of code |
** ripgrep config
Occasionally I can't exclude certain files from ripgrep via the VCS settings, so here is a simple config to ignore certain files globally.
#+begin_src text :tangle ~/.config/ripgrep/ripgreprc
--ignore-file=/home/pavel/.config/ripgrep/ripgrepignore
#+end_src
The corresponding ignore file:
#+begin_src text :tangle ~/.config/ripgrep/ripgrepignore
*.ts.snap
#+end_src
By default ripgrep doesn't read any configs, so it is necessary to set the =RIPGREP_CONFIG_PATH= variable in the [[*Environment][.profile.]]
* Misc scripts
** =nt= - exec command with a finished notification
Usage: