Add .ripgreprc for ripgrep, rc. Make output compatible with vim.
dblume

dblume commited on 2022-04-12 16:15:47
Showing 4 changed files, with 11 additions and 3 deletions.

... ...
@@ -95,6 +95,7 @@ fi
95 95
 
96 96
 export P4DIFF='vim -d'  # Override from the command line: "P4DIFF=; p4 diff main.py"
97 97
 export CSCOPE_EDITOR=vim
98
+export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
98 99
 
99 100
 alias grep='grep --color=auto'
100 101
 alias fgrep='fgrep --color=auto'
... ...
@@ -0,0 +1,5 @@
1
+--no-heading
2
+-n
3
+--max-columns=150
4
+--glob=!builds/
5
+--glob=!tags
... ...
@@ -51,8 +51,10 @@ See [config.dlma.com](http://config.dlma.com) for more.
51 51
         6. Assorted favorite colors like [desert](https://github.com/dblume/desert.vim).
52 52
 3. .gitconfig and .gitignore
53 53
 4. .tmux.conf
54
-5. .inputrc, for a [partially matched command history traversal](http://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow/59855#59855).
55
-6. .ssh/config, for a [fix for CVE-2016-0777](https://news.ycombinator.com/item?id=10901588). (Or upgrade to OpenSSH 7.1p2 released Jan 14, 2016 from http://www.openssh.com.)
54
+5. .inputrc, for vi mode and a [partially matched command history traversal](http://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow/59855#59855).
55
+6. .editrc, for vi mode and tab word completion in macOS.
56
+7. .ssh/config, for a [fix for CVE-2016-0777](https://news.ycombinator.com/item?id=10901588). (Or upgrade to OpenSSH 7.1p2 released Jan 14, 2016 from http://www.openssh.com.)
57
+8. .ripgreprc, for ripgrep, or [rc](https://github.com/BurntSushi/ripgrep/).
56 58
 
57 59
 #### Optional manual steps for fresh setups
58 60
 
... ...
@@ -4,7 +4,7 @@ set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/
4 4
 declare -r SCRIPT_NAME=$(basename "$BASH_SOURCE")
5 5
 declare -r backup_dir=$HOME/backup_of_dotfiles_`date "+%Y-%m-%d"`
6 6
 declare -a dotfiles=(".bashrc" ".bash_profile" ".vimrc" ".editrc" ".gitconfig"
7
-                     ".gitignore" ".inputrc" ".tmux.conf" ".ssh/config")
7
+                     ".gitignore" ".inputrc" ".tmux.conf" ".ssh/config" ".ripgreprc")
8 8
 declare -i DRY_RUN=0
9 9
 
10 10
 ## exit the shell (with status 2) after printing the message
11 11