1
0
forked from extern/nix-config

meta: Replace ripgrep config with alias

Stowing an entire config directory for one line was too funny to not
change, so I converted it to an alias instead.
This commit is contained in:
Donovan Glover 2022-07-29 17:54:30 -04:00
parent 917e50c37f
commit ae900bda97
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
3 changed files with 3 additions and 18 deletions

View File

@ -6,7 +6,6 @@ set -U fish_greeting ""
export VISUAL="nvim"
export EDITOR="nvim"
export PATH="$HOME/.deno/bin:$HOME/.cargo/bin:$HOME/.yarn/bin:$HOME/.local/bin:$HOME/.go/bin:$PATH"
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
export NODE_OPTIONS="--max_old_space_size=16384"
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
export GOPATH="$HOME/.go"
@ -40,6 +39,9 @@ function https
/usr/bin/https "$argv" "User-Agent: "
end
# Don't show ripgrep results for very long lines (e.g. minified files)
alias rg="rg --max-columns=200"
# Use exa as a drop-in replacement for ls and tree (faster, more colors, etc.)
alias ls="exa --group-directories-first -I 'lost+found'"
alias tree="exa --group-directories-first --long --tree -I 'node_modules|.git|public|lost+found'"

View File

@ -1,2 +0,0 @@
# Don't show results for very long lines (e.g. minified files)
--max-columns=200

View File

@ -1,15 +0,0 @@
# ripgrep
[ripgrep][ripgrep] is a modern version of grep.
## Use Cases
ripgrep can be used to:
- Search for strings in projects
You should not use ripgrep if:
- You should use ripgrep.
[ripgrep]: https://github.com/BurntSushi/ripgrep