Even better fzy

This commit is contained in:
Thomas Avé 2024-03-30 14:45:33 +01:00
parent 1ede5c79e0
commit 811f919fdc
1 changed files with 1 additions and 3 deletions

View File

@ -87,7 +87,6 @@ function zvm_after_init() {
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi fi
source "$XDG_CONFIG_HOME/zsh/zsh-quiet-accept-line/quiet-accept-line.plugin.zsh"
function cd_to() { function cd_to() {
setopt localoptions pipefail no_aliases 2> /dev/null setopt localoptions pipefail no_aliases 2> /dev/null
local dir=$1 local dir=$1
@ -96,12 +95,11 @@ function zvm_after_init() {
return 0 return 0
fi fi
zle push-line # Clear buffer. Auto-restored on next prompt. zle push-line # Clear buffer. Auto-restored on next prompt.
BUFFER="cd ${(q)dir}" cd $dir
zle accept-line zle accept-line
local ret=$? local ret=$?
unset dir # ensure this doesn't end up appearing in prompt expansion unset dir # ensure this doesn't end up appearing in prompt expansion
zle reset-prompt zle reset-prompt
return $ret
} }
# Use FZY instead of FZF for ctrl-t # Use FZY instead of FZF for ctrl-t