add base setup with dotter

This commit is contained in:
Alexander Navarro 2024-11-08 22:53:56 +00:00 committed by aleidk
parent 6b0da868bb
commit 42e6595b60
177 changed files with 1062 additions and 70 deletions

View file

@ -0,0 +1,13 @@
fzf-locate-widget() {
local selected
if selected=$(locate / | fzf --prompt " Locate > " -q "$LBUFFER" \
--bind 'alt-u:execute(sudo updatedb)' --header 'M-u: UpdateDB' \
--color=fg:bold:blue --preview-window '<50(down,75%,border-top)'
); then
LBUFFER=$selected
fi
zle reset-prompt
}
zle -N fzf-locate-widget
bindkey '^[i' fzf-locate-widget #<Alt-I>