nu_scripts/modules/prompt
Igor 9d399d8902
Port before_v0.60/config_management before_v0.60/language before_v0.60/prompt before_v0.60/tests (#851)
This PR is part of porting all old scripts #221 and includes a set of
modules:

- `config_management`
- `language`
- `tests`
- `prompt`

## 12 files changed

### `config_management`
This module was removed, because it was related to the old `config.toml`
format
1. `README.md`: removed
2. `config.toml`: removed
3. `startup.nu`: removed

### `language`
4. `playground.nu` : unchanged because this is just `source ...`
5. `std.nu` : unchanged because this is just `source ...`
6. `playground/lib.nu` -> `playground/mod.nu` and all commands have been
exported
7. `std/date.nu` + `export` keyword

### `tests`
This module contained only the usage of `language` module, so I merged
it with `language`
8. `tests/language/std/date.nu` -> `modules/language/tests/date.nu`
9. `main.nu`: removed because it was just `source date.nu`

### `prompt`
10. `git_status_prompt.nu` -> `modules/git_status_prompt.nu` + `export`
keyword
11. `left_and_right_prompt.nu` -> `modules/left_and_right_prompt.nu` +
`export` keyword
12. `README.md` : has been removed as a duplicate of
`modules/prompt/README.md`
2024-05-26 12:37:01 -05:00
..
async_git_prompt Replace use of $nothing with null (#621) 2023-09-26 18:52:49 +02:00
images Add a git prompt (#555) 2023-07-19 06:24:54 -05:00
powerline replace def-env with def --env (#641) 2023-10-18 06:25:54 -05:00
basic-git.nu Adding the A case (#688) 2023-12-07 11:09:56 -06:00
full-line.nu fix regressions noted in 0.93.1 from 0.83: (#843) 2024-05-25 08:28:42 -05:00
git_status_prompt.nu Port before_v0.60/config_management before_v0.60/language before_v0.60/prompt before_v0.60/tests (#851) 2024-05-26 12:37:01 -05:00
jalon-git.nu update jalon-git.nu to latest nushell syntax (#748) 2024-01-25 11:47:11 -06:00
left_and_right_prompt.nu Port before_v0.60/config_management before_v0.60/language before_v0.60/prompt before_v0.60/tests (#851) 2024-05-26 12:37:01 -05:00
oh-my-minimal.nu Replace use of $nothing with null (#621) 2023-09-26 18:52:49 +02:00
oh-my-v2-docs.md use $env. instead of let-env (#543) 2023-07-01 10:40:16 +02:00
oh-my-v2.nu Replace use of $nothing with null (#621) 2023-09-26 18:52:49 +02:00
oh-my.nu update prompts scripts with new str replace syntax (#579) 2023-08-17 18:10:20 -05:00
panache-git.nu panache-git: do not print stderr from Git commands (#813) 2024-04-11 08:00:04 -05:00
README.md use typos for corrections (#833) 2024-05-08 06:47:54 -05:00
shell_space.nu rename date format to format date (#571) 2023-08-04 09:08:10 -05:00
simple.nu refactor: (#418) 2023-04-25 17:56:25 -05:00
starship.nu use $env. instead of let-env (#543) 2023-07-01 10:40:16 +02:00

Prompt Scripts

Definition

These scripts should be used to draw a custom command prompt in nushell. They can include anything that we think is appropriate for prompts such as git commands, starship, oh-my-posh, etc.

starship.nu

File is in starship

This describe how to use starship to make a leftprompt, the repo of starship is here.

This script set the output of starship as leftprompt

starshipshow

shell_space.nu

File is in shell_space

Use the function of shells in nu, you can view the function with the command following

help shells

shell_spaceshow

jalon-git.nu

From https://github.com/JalonWong/nushell-prompt jalon-git