# Help utilizing babashka tasks globally

**URL:** https://clojureverse.org/t/help-utilizing-babashka-tasks-globally/8026
**Category:** Beginners
**Tags:** babashka
**Created:** [August 10, 2021, 3:07pm UTC](https://clojureverse.org/t/help-utilizing-babashka-tasks-globally/8026 "2021-08-10T15:07:14Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![borkdude](https://clojureverse.org/user_avatar/clojureverse.org/borkdude/32/306_2.png) [@borkdude](https://clojureverse.org/u/borkdude)
#### Post date: [August 10, 2021, 3:53pm UTC](https://clojureverse.org/t/help-utilizing-babashka-tasks-globally/8026/2 "2021-08-10T15:53:59Z")

</div>

Perhaps making a small bash script that cds into the system-wide bb.edn project and then calls bb from there might be easier.

In `/usr/local/bin` or whatever dir is on the path:

`/usr/local/bin/bbsys`:

```auto
#!/usr/bin/env bash

cd $(dirname $0)
bb $@

```

`/usr/local/bin/bb.edn`:

```clojure
{:deps {medley/medley {:mvn/version "1.3.0"}}
 :tasks {:requires ([medley.core :as medley])
         a (prn (medley/index-by :id [{:id 1} {:id 2}]))}}

```

Then from anywhere:

```auto
$ bbsys a
{1 {:id 1}, 2 {:id 2}}

```

---

_[View the full topic](https://clojureverse.org/t/help-utilizing-babashka-tasks-globally/8026)._
