Mercurial > dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
533:22fb4745cb1b | 534:aee830df7a88 |
---|---|
2 | 2 |
3 source ~/.zsh/zsh-history-substring-search.zsh | 3 source ~/.zsh/zsh-history-substring-search.zsh |
4 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=green,fg=black' | 4 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=green,fg=black' |
5 | 5 |
6 source ~/.zsh/zsh-autosuggestions.zsh | 6 source ~/.zsh/zsh-autosuggestions.zsh |
7 | |
8 fpath=(~/.zsh/completions $fpath) | |
7 | 9 |
8 export TERM=xterm-256color | 10 export TERM=xterm-256color |
9 | 11 |
10 export LC_ALL=$LANG | 12 export LC_ALL=$LANG |
11 | 13 |
208 fi | 210 fi |
209 } | 211 } |
210 zle -N fancy-ctrl-z | 212 zle -N fancy-ctrl-z |
211 bindkey '^Z' fancy-ctrl-z | 213 bindkey '^Z' fancy-ctrl-z |
212 | 214 |
213 # Ctags based completion for rg | |
214 _rg() { | |
215 if (( CURRENT == 2 )); then | |
216 compadd $(cut -f 1 tags tmp/tags 2>/dev/null | grep -v '!_TAG') | |
217 fi | |
218 } | |
219 | |
220 compdef _rg rg | |
221 | |
222 # Aliases | 215 # Aliases |
223 alias l="ls -haltr" | 216 alias l="ls -haltr" |
224 alias ll="ls -haltr" | 217 alias ll="ls -haltr" |
225 alias xclip='xclip -selection clipboard' | 218 alias xclip='xclip -selection clipboard' |
226 alias view='nvim -R' | 219 alias view='nvim -R' |