Skip to content

Commit

Permalink
feat(bashrc): add rg config and load ag bash-completion file
Browse files Browse the repository at this point in the history
  • Loading branch information
xatier committed Nov 27, 2023
1 parent 8bea24c commit b3d6363
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ Configuration file for the [awesome wm](https://awesomewm.org/)
pacman -S shutter
```

### ripgrep

[ripgrep](https://github.com/BurntSushi/ripgrep) configurations (`~/.config/ripgrep/rc`)

Ref: [GUIDE.md](https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file)

### screenrc

Screen settings, didn't use screen for a long long while.
Expand Down
8 changes: 8 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ export LIBVA_DRIVER_NAME=vdpau
# disable the default virtualenv prompt change
export VIRTUAL_ENV_DISABLE_PROMPT=1

# load rg config
export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/rc

# load ag completion file
if [[ -d /usr/share/the_silver_searcher/ ]]; then
source /usr/share/the_silver_searcher/completions/ag.bashcomp.sh
fi

# load a key to ssh agent
# eval `ssh-agent`
# ssh-add ~/.ssh/<key to be added>
Expand Down
12 changes: 12 additions & 0 deletions ripgrep/rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--engine=auto
--smart-case
--sort=path

# ag style color theme
--colors=line:fg:yellow
--colors=line:style:bold
--colors=path:fg:green
--colors=path:style:bold
--colors=match:fg:black
--colors=match:bg:yellow
--colors=match:style:nobold

0 comments on commit b3d6363

Please sign in to comment.