Commit 3f02e76
committed
Add command :NixShell
Add a command to call 'nix-shell' and then update the editor's
environment as if it was inside the new shell.
It's sometimes useful to fire up a nix-shell just to download a package
for using it once. It's annoying however when it's a library or any
other dependency of ':make', which can't be called from inside the
shell.
Example:
:NixShell -p hello
:term hello
There's no rollback command but it could be written if it's ever needed.
Calling the commande several times will nest environments the same way
as opening a shell inside a shell.1 parent 1e8d3cc commit 3f02e76
1 file changed
+44
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
1 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments