mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-31 20:41:16 +01:00 
			
		
		
		
	zsh: removed faulty completion addon and added fuzzy completion
This commit is contained in:
		| @@ -49,19 +49,10 @@ zstyle ':vcs_info:git*+set-message:*' hooks git-st git-stash | |||||||
| PS1='%B%{$fg[blue]%}[%{$fg[blue]%}%n%{$fg[blue]%}@%{$fg[blue]%}%M %{$fg[blue]%}%~%{$fg[blue]%}]%{$reset_color%}\$%b ' | PS1='%B%{$fg[blue]%}[%{$fg[blue]%}%n%{$fg[blue]%}@%{$fg[blue]%}%M %{$fg[blue]%}%~%{$fg[blue]%}]%{$reset_color%}\$%b ' | ||||||
| RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b' | RPROMPT='%B%{$fg[blue]%}$vcs_info_msg_0_%{$reset_color%}%b' | ||||||
|  |  | ||||||
| source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh | zstyle ':completion:*' menu select | ||||||
| bindkey '\t' menu-select "$terminfo[kcbt]" menu-select | zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # Case insensitive completion | ||||||
| bindkey -M menuselect '\t' menu-complete "$terminfo[kcbt]" reverse-menu-complete | zmodload zsh/complist | ||||||
| bindkey -M menuselect '^ ' autosuggest-accept | _comp_options+=(globdots)	# Include hidden files | ||||||
| zstyle ':autocomplete:*' list-lines 100 |  | ||||||
| zstyle ':autocomplete:*' widget-style menu-select |  | ||||||
| zle -A {.,}history-incremental-search-forward |  | ||||||
| zle -A {.,}history-incremental-search-backward |  | ||||||
| zstyle ':autocomplete:*' fzf-completion yes |  | ||||||
| zstyle ':autocomplete:*' recent-dirs zsh-z |  | ||||||
| zstyle ':autocomplete:*' menu select |  | ||||||
| zstyle ':autocomplete:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' # Case insensitive completion |  | ||||||
| zstyle ':autocomplete:*' insert-unambiguous yes |  | ||||||
|  |  | ||||||
| # Enable vi mode | # Enable vi mode | ||||||
| bindkey -v | bindkey -v | ||||||
| @@ -145,6 +136,9 @@ source /usr/share/doc/pkgfile/command-not-found.zsh | |||||||
| # Load fast-syntax-highlighting; should be last. | # Load fast-syntax-highlighting; should be last. | ||||||
| source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh | source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh | ||||||
|  |  | ||||||
|  | # fuzzy completion | ||||||
|  | source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh | ||||||
|  |  | ||||||
| if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then | if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then | ||||||
|     tmux attack-session -t $USER || tmux new-session -s $USER |     tmux attack-session -t $USER || tmux new-session -s $USER | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user