Skip to content

Commit 9c0dcf1

Browse files
authored
Run the cd command after "cd ... <space><tab>" in Bash integration (ajeetdsouza#1055)
1 parent 628f854 commit 9c0dcf1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/bash.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ if [[ ${BASH_VERSINFO[0]:-0} -eq 4 && ${BASH_VERSINFO[1]:-0} -ge 4 || ${BASH_VER
151151
function __zoxide_z_complete_helper() {
152152
READLINE_LINE="{{ cmd }} ${__zoxide_result@Q}"
153153
READLINE_POINT={{ "${#READLINE_LINE}" }}
154+
bind '"\e[0n": accept-line'
155+
\builtin printf '\e[5n' >/dev/tty
154156
}
155157

156158
function __zoxide_z_complete() {

0 commit comments

Comments
 (0)