* remove the template
* update the theme generation script
* fix the local path to the lemnos themes
* use the real `export der main` module template
* remove the empty lines and the comments from theme files
* adapt the default config file theme to the template
This commit uses closures for `filesize`, `date` and `bool`.
* put quotes around all the colors in the template
* fix the `else` of `filesize` => returns a true record now
* use default colors for the filesize
* regenerate all the themes with `./make.nu`
The different commands such as `git checkout`, `git switch`, `git
cherry-pick` and `git rebase` all accept slightly differing refspecs.
This commit separates the extraction of refspecs and combines them in
individual completion commands for the different external commands.
All git commands complete with a table of `value | description` now.
Addresses #406
Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
* Add CODEOWNERS file
On its own, the only thing this does is request reviews from codeowners.
If virtual_environments is touched, @Hofer-Julian will be requested.
Otherwise, @fdncred.
Combined with branch protection rules, this can enforce who is allowed
to review and merge pull requests touching certain parts of the code.
* Add core team
Added branch, remote, diff, commit, pull, stash, init, status, add, rm,
help, log, bisect
Also removed ? from `git rebase --onto` which was putting a literal `?`
into the flag when completing.
* change the main command of the themes to `main`
Command used:
```
sd 'export def .* \[\] \{' 'export def main [] {' themes/themes/**/*
```
This commit mitigates the following equivalent error
```
>_ module spam { export def spam [] { "this is spam::spam" } }
Error: nu::parser::named_as_module
× Can't export command named same as the module.
╭─[entry #74:1:1]
1 │ module spam { export def spam [] { "this is spam::spam" } }
· ──┬─
· ╰── can't export from module spam
╰────
help: Module spam can't export command named the same as the module. Either change the module name, or export `main`
custom command.
```
when running `use themes/themes/dracula.nu` for instance.
* change the template as well to define a `main` function
* do not use * from the theme modules, they define a `main` function
Now that the `alias` command became less powerful,
there is no good way to disable the prompt globally anymore.
This commit fixes it by using an environment variable `CONDA_NO_PROMPT` instead.
updating the environment with closures should not
be done with `insert` because `insert` will call
a closure if it gets one as input, `merge` will not
Co-authored-by: Benoît Sierro <benoit.sierro@bluewin.ch>