Run the cd command after "cd ... <space><tab>" in Bash integration

This commit is contained in:
Koichi Murase 2025-05-14 11:56:35 +09:00
parent 628f8542a0
commit 4a48175097
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ if [[ ${BASH_VERSINFO[0]:-0} -eq 4 && ${BASH_VERSINFO[1]:-0} -ge 4 || ${BASH_VER
function __zoxide_z_complete_helper() {
READLINE_LINE="{{ cmd }} ${__zoxide_result@Q}"
READLINE_POINT={{ "${#READLINE_LINE}" }}
bind '"\e[0n": accept-line'
\builtin printf '\e[5n' >/dev/tty
}
function __zoxide_z_complete() {