mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
feat(ripgrep): add config
This commit is contained in:
parent
a19a36e2d3
commit
53692feda0
4 changed files with 23 additions and 6 deletions
1
.config/ripgrep/ripgrepignore
Normal file
1
.config/ripgrep/ripgrepignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
*.ts.snap
|
||||||
1
.config/ripgrep/ripgreprc
Normal file
1
.config/ripgrep/ripgreprc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
--ignore-file=/home/pavel/.config/ripgrep/ripgrepignore
|
||||||
7
.profile
7
.profile
|
|
@ -1,11 +1,12 @@
|
||||||
# [[file:Console.org::*Environment][Environment:1]]
|
# [[file:Console.org::*Environment][Environment:1]]
|
||||||
# export EDITOR=/usr/bin/vim
|
|
||||||
# export BROWSER=/usr/bin/firefox
|
|
||||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
||||||
# export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
|
||||||
# Environment:1 ends here
|
# 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]]
|
# [[file:Console.org::*My paths][My paths:1]]
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
|
|
||||||
20
Console.org
20
Console.org
|
|
@ -53,11 +53,13 @@
|
||||||
:END:
|
:END:
|
||||||
** Environment
|
** Environment
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
# export EDITOR=/usr/bin/vim
|
|
||||||
# export BROWSER=/usr/bin/firefox
|
|
||||||
export QT_QPA_PLATFORMTHEME="qt5ct"
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||||
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
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
|
#+end_src
|
||||||
** My paths
|
** My paths
|
||||||
My script folders
|
My script folders
|
||||||
|
|
@ -843,6 +845,18 @@ key_bindings:
|
||||||
| jmtpfs | A tool to mount MTP devices (e.g. Android) |
|
| jmtpfs | A tool to mount MTP devices (e.g. Android) |
|
||||||
| tokei | Count lines of code |
|
| 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
|
* Misc scripts
|
||||||
** =nt= - exec command with a finished notification
|
** =nt= - exec command with a finished notification
|
||||||
Usage:
|
Usage:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue