feat: pass string to ai
This commit is contained in:
parent
2ffe8eb372
commit
346a727161
2 changed files with 28 additions and 25 deletions
7
ai.sh
7
ai.sh
|
@ -1,6 +1,9 @@
|
||||||
sudo systemctl start ollama
|
sudo systemctl start ollama
|
||||||
if [ $1 = "llama" ]; then
|
sleep 1
|
||||||
ollama run llama3:8b
|
|
||||||
|
|
||||||
|
if ! [ "$2" = "" ]; then
|
||||||
|
ollama run gpt-oss:20b "$2"
|
||||||
else
|
else
|
||||||
ollama run gpt-oss:20b
|
ollama run gpt-oss:20b
|
||||||
fi
|
fi
|
||||||
|
|
46
ayo.sh
46
ayo.sh
|
@ -10,23 +10,23 @@ case $1 in
|
||||||
## SHORTCUTS
|
## SHORTCUTS
|
||||||
|
|
||||||
ja) # journal append
|
ja) # journal append
|
||||||
. ${scripts_dir}/journal.sh append $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/journal.sh append "$@"
|
||||||
;;
|
;;
|
||||||
jt) # journal using typora
|
jt) # journal using typora
|
||||||
. ${scripts_dir}/journal.sh -t $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/journal.sh -t "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
tl) # Tasks list
|
tl) # Tasks list
|
||||||
. ${scripts_dir}/tasks.sh list $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/tasks.sh list "$@"
|
||||||
;;
|
;;
|
||||||
to) # Tasks open
|
to) # Tasks open
|
||||||
. ${scripts_dir}/tasks.sh open $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/tasks.sh open "$@"
|
||||||
;;
|
;;
|
||||||
tr) # Tasks remove
|
tr) # Tasks remove
|
||||||
. ${scripts_dir}/tasks.sh remove $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/tasks.sh remove "$@"
|
||||||
;;
|
;;
|
||||||
td) # Tasks mark as done
|
td) # Tasks mark as done
|
||||||
. ${scripts_dir}/tasks.sh done $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/tasks.sh done "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
nd) # Notes diff
|
nd) # Notes diff
|
||||||
|
@ -36,32 +36,32 @@ case $1 in
|
||||||
. ${scripts_dir}/notes.sh sync
|
. ${scripts_dir}/notes.sh sync
|
||||||
;;
|
;;
|
||||||
nl) # Notes list
|
nl) # Notes list
|
||||||
. ${scripts_dir}/notes.sh list $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh list "$@"
|
||||||
;;
|
;;
|
||||||
no) # Notes open
|
no) # Notes open
|
||||||
. ${scripts_dir}/notes.sh open $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh open "$@"
|
||||||
;;
|
;;
|
||||||
nr) # Notes remove
|
nr) # Notes remove
|
||||||
. ${scripts_dir}/notes.sh remove $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh remove "$@"
|
||||||
;;
|
;;
|
||||||
na) # Notes archive
|
na) # Notes archive
|
||||||
. ${scripts_dir}/notes.sh archive $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh archive "$@"
|
||||||
;;
|
;;
|
||||||
nc) # Notes copy
|
nc) # Notes copy
|
||||||
. ${scripts_dir}/notes.sh copy $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh copy "$@"
|
||||||
;;
|
;;
|
||||||
nt) # Notes using typora
|
nt) # Notes using typora
|
||||||
. ${scripts_dir}/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh -t "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
gd) # git diff
|
gd) # git diff
|
||||||
. ${scripts_dir}/git.sh diff $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/git.sh diff "$@"
|
||||||
;;
|
;;
|
||||||
gs) # git status
|
gs) # git status
|
||||||
. ${scripts_dir}/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/git.sh stat "$@"
|
||||||
;;
|
;;
|
||||||
gp) # git push
|
gp) # git push
|
||||||
. ${scripts_dir}/git.sh push $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/git.sh push "$@"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
mt) # mail task
|
mt) # mail task
|
||||||
|
@ -71,28 +71,28 @@ case $1 in
|
||||||
## SCRIPTS
|
## SCRIPTS
|
||||||
|
|
||||||
ai)
|
ai)
|
||||||
. ${scripts_dir}/ai.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/ai.sh "$@"
|
||||||
;;
|
;;
|
||||||
m | mail)
|
m | mail)
|
||||||
. ${scripts_dir}/mail.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/mail.sh "$@"
|
||||||
;;
|
;;
|
||||||
d | display)
|
d | display)
|
||||||
. ${scripts_dir}/display.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/display.sh "$@"
|
||||||
;;
|
;;
|
||||||
u | up)
|
u | up)
|
||||||
. ${scripts_dir}/up.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/up.sh "$@"
|
||||||
;;
|
;;
|
||||||
g | git)
|
g | git)
|
||||||
. ${scripts_dir}/git.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/git.sh "$@"
|
||||||
;;
|
;;
|
||||||
n | notes)
|
n | notes)
|
||||||
. ${scripts_dir}/notes.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/notes.sh "$@"
|
||||||
;;
|
;;
|
||||||
t | tasks)
|
t | tasks)
|
||||||
. ${scripts_dir}/tasks.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/tasks.sh "$@"
|
||||||
;;
|
;;
|
||||||
j | journal)
|
j | journal)
|
||||||
. ${scripts_dir}/journal.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/journal.sh "$@"
|
||||||
;;
|
;;
|
||||||
c | config)
|
c | config)
|
||||||
echo 'Config script in-progress'
|
echo 'Config script in-progress'
|
||||||
|
|
Loading…
Reference in a new issue