Home Explore Blog CI



nixpkgs

doc/packages/shell-helpers.section.md
d35b4fe92febd35697e10e79a5960c66e0de16d53089ac2c0000000300000211
# Interactive shell helpers {#sec-shell-helpers}

Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard `share` directory location. This is why a bunch `PACKAGE-share` scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following:

- `fzf` : `fzf-share`

E.g. `fzf` can then be used in the `.bashrc` like this:

```bash
source "$(fzf-share)/completion.bash"
source "$(fzf-share)/key-bindings.bash"
```

Chunks
27e1b920 (1st chunk of `doc/packages/shell-helpers.section.md`)
Title: Interactive Shell Helpers in Nix
Summary
Nix lacks a standard `share` directory, so packages like `fzf` provide scripts (e.g., `fzf-share`) to output the location of their shared folders. These scripts enable shell integration by sourcing completion and key-binding scripts in shell configuration files like `.bashrc`.