* Add generated completions for nix
Add initial completions for nix, generated by parsing
the nix help pages with a script.
* Add completion for nix log-format
* add README for nix completions
* allow taking arguments
`str collect` has been deprecated as of Nushell 0.69
Also, export some helper commands so that they can be used
for debugging or for building a custom prompt
* initial auto-venv implementation
* on enter and exit hooks now work
* fixed bugs related to overlays
* fix issues with re-entering overlay
* fix issues with "on swap"
* remove hook disabling flag
(hooks don't self trigger)
* fix on_exit
* update syntax
* moved files
* split out modules into separate files
* migrate auto-venv to 0.68 syntax
* refactored venvs to be "drop in" modules
kinda borked
* got auto-venv working with semi plug-n-play modules
* add documentation
`nu v0.68.0` how `use filename *` works, this broke my way of getting environmental variables.
Before I get environmental variables by `$env.NAME`, now I use `env | where name == 'NAME' | get value | first`
In Nushell 0.68, the `source` command has been deprecated.
Going forward, the way to utilize custom commands is
to put them into a module and import them with `use`.
This means that `panache-git.nu` had to be converted
from a script to a module so that the main prompt command
could be imported by a user's Nushell environment config.
* add my personal color config files
remove the useless colors.nu script
* add all lemnos theme files as a submodule
* add a template module from the default dark theme
the `map.csv` file:
```csv
code,bold,bash,nushell
0,false,black,black
1,false,red,red
2,false,green,green
3,false,yellow,yellow
4,false,blue,blue
5,false,magenta,purple
6,false,cyan,cyan
7,false,white,light_gray
8,true,black,dark_gray
9,true,red,red_bold
10,true,green,green_bold
11,true,yellow,yellow_bold
12,true,blue,blue_bold
13,true,magenta,purple_bold
14,true,cyan,light_cyan
14,true,cyan,cyan_bold
15,true,white,white
```
the command used was
```nushell
open map.csv |
each {
|it|
sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu
}
```
or as a oneliner
```nushell
open map.csv | each {|it| sed -i $"s/: ($it.nushell)$/: \"{{color($it.code)}}\"/" template.nu}
```
* add a script to make all the scripts at once
* make all the themes
* add a README with some credits to lemnos
* add usage instructions to the README
* add desired values to the template
This commit adds the background, the foreground and the cursor
colors to the themes as commented lines.
These do not fit into any nushell theme as they should be set by the
terminal emulator, but they are included here for completeness.
Addresses https://github.com/nushell/nu_scripts/pull/286#issuecomment-1230814914
* regenerate the themes with the new template
* remove all the occurences of sed by str replace
* remove the lemnos submodule
Co-authored-by: amtoine <44101798+AntoineStevan@users.noreply.github.com>