feat(ayo, up): use scripts_dir; new script up.sh

This commit is contained in:
Ayo Ayco 2025-06-26 09:26:06 +02:00
parent 2aaa02848f
commit ba1a397354
2 changed files with 42 additions and 20 deletions

51
ayo.sh
View file

@ -1,73 +1,83 @@
#! /usr/bin/bash #! /usr/bin/bash
# Load config
. ${HOME}/ayo.conf
. ${scripts_dir}/functions.sh
{
case $1 in case $1 in
## SHORTCUTS ## SHORTCUTS
ja) # journal append ja) # journal append
. ${HOME}/Projects/scripts/journal.sh append $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/journal.sh append $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
jt) # journal using typora jt) # journal using typora
. ${HOME}/Projects/scripts/journal.sh -t $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/journal.sh -t $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
tl) # Tasks list tl) # Tasks list
. ${HOME}/Projects/scripts/tasks.sh list $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/tasks.sh list $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
to) # Tasks open to) # Tasks open
. ${HOME}/Projects/scripts/tasks.sh open $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/tasks.sh open $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
tr) # Tasks remove tr) # Tasks remove
. ${HOME}/Projects/scripts/tasks.sh remove $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/tasks.sh remove $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
td) # Tasks mark as done td) # Tasks mark as done
. ${HOME}/Projects/scripts/tasks.sh done $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/tasks.sh done $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
ns) # Notes sync ns) # Notes sync
. ${HOME}/Projects/scripts/notes.sh sync . ${scripts_dir}/notes.sh sync
;; ;;
nl) # Notes list nl) # Notes list
. ${HOME}/Projects/scripts/notes.sh list $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh list $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
no) # Notes open no) # Notes open
. ${HOME}/Projects/scripts/notes.sh open $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh open $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
nr) # Notes remove nr) # Notes remove
. ${HOME}/Projects/scripts/notes.sh remove $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh remove $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
na) # Notes archive na) # Notes archive
. ${HOME}/Projects/scripts/notes.sh archive $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh archive $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
nc) # Notes copy nc) # Notes copy
. ${HOME}/Projects/scripts/notes.sh copy $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh copy $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
nt) # Notes using typora nt) # Notes using typora
. ${HOME}/Projects/scripts/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh -t $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
gd) # git diff gd) # git diff
. ${HOME}/Projects/scripts/git.sh diff $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/git.sh diff $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
gs) # git status gs) # git status
. ${HOME}/Projects/scripts/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/git.sh stat $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
gp) # git push gp) # git push
. ${HOME}/Projects/scripts/git.sh push $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/git.sh push $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
## SCRIPTS ## SCRIPTS
u | up)
. ${scripts_dir}/up.sh $2 $3 $4 $5 $6 $7 $8 $9
;;
g | git) g | git)
. ${HOME}/Projects/scripts/git.sh $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/git.sh $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
n | notes) n | notes)
. ${HOME}/Projects/scripts/notes.sh $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/notes.sh $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
t | tasks) t | tasks)
. ${HOME}/Projects/scripts/tasks.sh $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/tasks.sh $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
j | journal) j | journal)
. ${HOME}/Projects/scripts/journal.sh $2 $3 $4 $5 $6 $7 $8 $9 . ${scripts_dir}/journal.sh $2 $3 $4 $5 $6 $7 $8 $9
;; ;;
c | config) c | config)
echo 'Config script in-progress' echo 'Config script in-progress'
@ -79,3 +89,4 @@ case $1 in
quickemu --vm ${HOME}/macos-monterey.conf --kill quickemu --vm ${HOME}/macos-monterey.conf --kill
;; ;;
esac esac
}

11
up.sh Executable file
View file

@ -0,0 +1,11 @@
#! /usr/bin/bash
# Update commands
# Load config & functions
#. ${HOME}/ayo.conf
#. ${scripts_dir}/functions.sh
#command=$1
sudo apt update && sudo apt upgrade -y