mirror of https://github.com/sigoden/aichat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
187 B
Bash
7 lines
187 B
Bash
4 months ago
|
_aichat_bash() {
|
||
|
if [[ -n "$READLINE_LINE" ]]; then
|
||
|
READLINE_LINE=$(aichat -e "$READLINE_LINE")
|
||
|
READLINE_POINT=${#READLINE_LINE}
|
||
|
fi
|
||
|
}
|
||
|
bind -x '"\ee": _aichat_bash'
|