X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/blobdiff_plain/300f9af5a37252590c2be331c86f7932059f1d7e..HEAD:/README.md diff --git a/README.md b/README.md index 8cbda08..fb44973 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,30 @@ Some tasks can also take arguments. ``` sh bb ebook-to-audiobook the-great-gatsby.epub ``` + +## Shell aliases + +``` sh +# bash, zsh +source /path/to/babashka-scripts/bb-aliases.sh +alias task = bb --config ~/dev/babashka-scripts/bb.edn + +# nu +source /path/to/babashka-scripts/bb-aliases.nu +alias task = bb --config ~/dev/babashka-scripts/bb.edn +``` + +*Example:* To pull all the repositories in a directory, run + +``` sh +task gpa . +``` + +There is a utility `bbe` to run tasks in the current working directory in `bb-aliases.sh`. + + +*Example:* To pull all the repositories in a directory, run + +``` sh +bbe gpa +```