Run the cd command after "cd ... <space><tab>" in Bash integration (#1055)

This commit is contained in:
Koichi Murase 2025-05-14 12:08:54 +09:00 committed by GitHub
parent 628f8542a0
commit 9c0dcf12f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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() {