README
This commit is contained in:
parent
7303229b6a
commit
8ac9c74da0
1 changed files with 2 additions and 13 deletions
15
README.md
15
README.md
|
|
@ -9,21 +9,10 @@ A sprinkle of Clojure for the command line.
|
|||
## Quickstart
|
||||
|
||||
``` shellsession
|
||||
## install bb
|
||||
$ bash <(curl -s https://raw.githubusercontent.com/borkdude/babashka/master/install)
|
||||
|
||||
## optional: define some helper functions
|
||||
$ cat ~/.babashka/prelude.clj
|
||||
(defn directory? [f]
|
||||
(.isDirectory (io/file f)))
|
||||
|
||||
## optional: make helper functions available in current shell
|
||||
$ export BABASHKA_PRELOADS="(load-file \"$HOME/.babashka/prelude.clj\")"
|
||||
|
||||
## enjoy!
|
||||
$ ls | bb --time -i '(filter directory? *in*)'
|
||||
$ ls | bb --time -i '(filter #(-> % io/file .isDirectory) *in*)'
|
||||
("doc" "resources" "sci" "script" "src" "target" "test")
|
||||
bb took 6ms.
|
||||
bb took 4ms.
|
||||
```
|
||||
|
||||
## Rationale
|
||||
|
|
|
|||
Loading…
Reference in a new issue