Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

aatkin/skriptit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 

Repository files navigation

skriptit

Personal CLI utilities written with babashka

Example .zshrc

# s(kriptit)
## "s config"
## "s config code"
s() {
    bb --config $BB_SCRIPTS/bb.edn $@
}

# autocomplete all skriptit tasks on shell startup
_s_tasks() {
    local matches=(`s tasks |tail -n +3 |cut -f1 -d ' '`)
    compadd -a matches
}
compdef _s_tasks s

# directory saving/changing utility, inspired by similarly named bash utility
## "s dirb save docs" (or use alias to save typing)
## "go docs"
alias ss='s dirb save'
go() {
    cd $(s dirb "$1")
}

# autocomplete all dirb entries on shell startup
_s_dirb() {
    local matches=(`s dirb autocomplete |cut -f1 -d ' '`)
    compadd -a matches
}
compdef _s_dirb go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published