diff dot_zshrc @ 534:aee830df7a88

Add zsh completions for fd and rg
author zegervdv <zegervdv@me.com>
date Wed, 26 Jan 2022 09:37:15 +0100
parents 22fb4745cb1b
children f10b89e9aff3
line wrap: on
line diff
--- a/dot_zshrc	Tue Jan 25 21:54:03 2022 +0100
+++ b/dot_zshrc	Wed Jan 26 09:37:15 2022 +0100
@@ -5,6 +5,8 @@
 
 source ~/.zsh/zsh-autosuggestions.zsh
 
+fpath=(~/.zsh/completions $fpath)
+
 export TERM=xterm-256color
 
 export LC_ALL=$LANG
@@ -210,15 +212,6 @@
 zle -N fancy-ctrl-z
 bindkey '^Z' fancy-ctrl-z
 
-# Ctags based completion for rg
-_rg() {
-  if (( CURRENT == 2 )); then
-    compadd $(cut -f 1 tags tmp/tags 2>/dev/null | grep -v '!_TAG')
-  fi
-}
-
-compdef _rg rg
-
 # Aliases
 alias l="ls -haltr"
 alias ll="ls -haltr"