···7171</details>
72727373### As a direnv shell generator
7474-> Our `use_nix_tools.bash` endpoint can get you a `direnv` shell in no time!<br/>
7474+> Our `use_nix_tools.sh` endpoint can get you a `direnv` shell in no time!<br/>
7575> You don't even need `nix-versions` installed, just `nix` and `direnv`.
7676```shell
7777-direnv fetchurl "https://nix-versions.alwaysdata.net/use_nix_tools.bash/ruby/cowsay"
7777+direnv fetchurl "https://nix-versions.alwaysdata.net/use_nix_tools.sh/ruby/cowsay"
7878```
+5-5
docs/tools-version-manager.md
···2828If you are new to Nix but have used other version managers like `nvm`, `rvm`, `asdf`, `mise` we want to provide you with an integrated toolset that lets you take advantage of Nix
2929without mandating you to learn the nix-language. By editing plain-text files and reusing your existing `.ruby-version`, `.node-version`, etc files, you can cover most of your needs.
30303131-::: info ⚡ Fast Track ⚡ 🏃 - The `use_nix_tools.bash` endpoint.
3131+::: info ⚡ Fast Track ⚡ - 🏃 The quick-n-dirty `use_nix_tools.sh` endpoint.
32323333If you already have Nix and direnv installed, you can quickly get an environment ready in no time.
3434Note that you don't even need `nix-versions` installed locally for this to work.
···40404141```bash
4242# Place this on your .envrc
4343-source_url "https://nix-versions.alwaysdata.net/use_nix_tools.bash/go/ruby" HASH
4343+source_url "https://nix-versions.alwaysdata.net/use_nix_tools.sh/go/ruby" HASH
4444```
45454646Where `HASH` can be obtained with:
47474848```bash
4949-direnv fetchurl "https://nix-versions.alwaysdata.net/use_nix_tools.bash/go/ruby"
4949+direnv fetchurl "https://nix-versions.alwaysdata.net/use_nix_tools.sh/go/ruby"
5050```
51515252You can obtian package updates by doing `direnv reload`.
···120120:::
121121122122123123-All you need now is to create the following file `$HOME/.config/direnv/lib/use_nix_tools.bash`. This file
123123+All you need now is to create the following file `$HOME/.config/direnv/lib/use_nix_tools.sh`. This file
124124will install a function that all your projects can use to load their respective environment.
125125126126```shell
127127mkdir -p ~/.config/direnv/lib
128128# You can always inspect the downloaded function before installing it
129129-curl "https://nix-versions.alwaysdata.net/use_nix_tools.bash" -o ~/.config/direnv/lib/use_nix_tools.bash
129129+curl "https://nix-versions.alwaysdata.net/use_nix_tools.sh" -o ~/.config/direnv/lib/use_nix_tools.sh
130130```
131131132132Then, on your project directory, besides your `.nix_tools` file, create an `.envrc` file that will be
···11-function use_nix_installables {
11+# -*- mode: sh -*-
22+# shellcheck shell=bash
33+44+use_nix_installables() {
25 direnv_load nix shell "${@}" -c $direnv dump
36}
4755-function use_nix_tools {
88+use_nix_tools() {
69 declare -a args
710 if test -z "${1:-}"; then
811 watch_file "$PWD/.nix_tools"
99- args+=("--read" "${PWD}/.nix_tools")
1212+ args+=("--read" "$PWD/.nix_tools")
1013 fi
1114 while test -n "$1"; do
1215 if test -f "$1"; then