diff options
author | 2025-09-11 16:38:11 +0100 | |
---|---|---|
committer | 2025-09-11 16:38:11 +0100 | |
commit | aa62e1f27b0cb3d712d6f2b13071cca0f09379be (patch) | |
tree | a6d2a4ba09d66490bc7c1a23f35be707fa0f5c8b /home/.config/zsh/.zshrc | |
parent | c1f310bcc39f6cf4684d938d7be45bb25b427335 (diff) | |
download | dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.tar.gz dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.tar.bz2 dotfiles-aa62e1f27b0cb3d712d6f2b13071cca0f09379be.zip |
Diffstat (limited to 'home/.config/zsh/.zshrc')
-rw-r--r-- | home/.config/zsh/.zshrc | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc index 614e7f0..59d7fad 100644 --- a/home/.config/zsh/.zshrc +++ b/home/.config/zsh/.zshrc @@ -171,6 +171,9 @@ set zle_bracketed_paste # Explicitly restore this zsh default autoload -Uz bracketed-paste-magic zle -N bracketed-paste bracketed-paste-magic +autoload -Uz select-word-style +select-word-style shell + safesource /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh if [ -n "$ZSH_HIGHLIGHT_STYLES" ]; then @@ -184,8 +187,7 @@ bindkey '^[[Z' autosuggest-accept safesource /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh -safesource /etc/profile.d/fzf.zsh || safesource /usr/share/fzf/key-bindings.zsh -safesource /usr/share/zsh/site-functions/_fzf || safesource /usr/share/fzf/completion.zsh +source <(fzf --zsh) fzf-history-widget-accept() { fzf-history-widget @@ -193,3 +195,26 @@ fzf-history-widget-accept() { } zle -N fzf-history-widget-accept bindkey '^X^R' fzf-history-widget-accept + +_fzf_compgen_path() { + fd --hidden --follow --exclude ".git" . "$1" +} + +# Use fd to generate the list for directory completion +_fzf_compgen_dir() { + fd --type d --hidden --follow --exclude ".git" . "$1" +} + +compdef g=git +compdef j=just +compdef n=nvim +compdef ndiff=nvim +compdef nd=nvim +compdef nview=nvim +compdef nv=nvim +compdef sys=systemctl +compdef ssys=systemctl +compdef sysu=systemctl +compdef l=lsd +compdef la=lsd +compdef lt=lsd |