mirror of
https://github.com/balkian/dotfiles.git
synced 2025-08-23 00:02:19 +00:00
add default completion zsh zfz
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -14,6 +14,3 @@
|
||||
[submodule "zsh/.zprezto-contrib/fzf-z"]
|
||||
path = zsh/.zprezto-contrib/fzf-z
|
||||
url = git@github.com:andrewferrier/fzf-z.git
|
||||
[submodule "zsh/.zprezto-contrib/fzf-tab"]
|
||||
path = zsh/.zprezto-contrib/fzf-tab
|
||||
url = https://github.com/Aloxaf/fzf-tab
|
||||
|
Submodule zsh/.zprezto-contrib/fzf-tab deleted from 607a28b895
23
zsh/.zshrc
23
zsh/.zshrc
@@ -15,6 +15,27 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
||||
fi
|
||||
|
||||
if [[ -s "/usr/share/fzf/key-bindings.zsh" ]]; then
|
||||
source "/usr/share/fzf/key-bindings.zsh"
|
||||
source "/usr/share/fzf/completion.zsh"
|
||||
fi
|
||||
|
||||
|
||||
# Change find to fd in fzf
|
||||
|
||||
if command -v fd > /dev/null 2>&1; then
|
||||
|
||||
_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"
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
# Customize to your needs...
|
||||
|
||||
#
|
||||
@@ -168,4 +189,4 @@ setopt interactivecomments
|
||||
|
||||
export WASMTIME_HOME="$HOME/.wasmtime"
|
||||
|
||||
export PATH="$WASMTIME_HOME/bin:$PATH"
|
||||
export PATH="$WASMTIME_HOME/bin:$PATH"
|
||||
|
Reference in New Issue
Block a user