Even better fzy
This commit is contained in:
parent
1ede5c79e0
commit
811f919fdc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue