foxshell/fn/z4h-autosuggest-accept
2025-07-04 11:48:40 -05:00

9 lines
140 B
Bash

#!/usr/bin/env zsh
local -i cursor=CURSOR
{
typeset -gi CURSOR='_z4h_cursor_max()'
zle autosuggest-accept
} always {
CURSOR=cursor
}