Skip to content

yurenchen000/howto.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

howto.sh

the bash version of https://github.com/antonmedv/howto

asciicast demo1

asciicast demo2

usage

in bash

1. setup

$ source deepseek.sh  bind1
$ HOWTO_APIKEY='your deepseek apikey'

2. usage demo

$ howto find files modified today
== cmd is: find / -type f -mtime 0
$ find / -type f -mtime 0      <=== this line input by script

deepseek query is slow (about 4 seconds)


TIPS: Ctrl + G will prepend howto cmd and run


3. use ctrl+g completion

bind -x '"\C-g": "c_howto"'

//this will show howto in cli & history

OR

bind -x '"\C-g": "c_howto2"'

//this not show howto in cli & history

then input the search string, for example:

$ find files modified today

then press Ctrl+G to trigger completion

About

AI bash completion, bash implemention of https://github.com/antonmedv/howto

Topics

Resources

Stars

Watchers

Forks

Languages