1 2 3 4 5 6 7 8 9 10 11
_aimo_zsh() { if [[ -n "$BUFFER" ]]; then local _old=$BUFFER BUFFER+="⌛" zle -I && zle redisplay BUFFER=$(aimo -e "$_old") zle end-of-line fi } zle -N _aimo_zsh bindkey '\ee' _aimo_zsh