diff options
-rw-r--r-- | zsh/.zshrc | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -19,3 +19,22 @@ export WORKON_HOME=$HOME/.virtualenvs source /usr/share/virtualenvwrapper/virtualenvwrapper.sh eval "$(direnv hook zsh)" +# Install Ruby Gems to ~/gems +export GEM_HOME="$HOME/.gems" +export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH" +alias mutt=neomutt +export TERM=xterm-256color + +rga() { + RG_PREFIX="rg --files-with-matches" + local file + + file="$( + FZF_DEFAULT_COMMAND="$RG_PREFIX '$*'" \ + fzf --sort --preview="[[ ! -z {} ]] && rg --pretty --context 5 {q}" \ + --phony -q "$*" \ + --bind "change:reload:$RG_PREFIX {q}" \ + --preview-window="70%:wrap" + )" && + xdg-open "$file" +} |