Commit graph

14 commits

Author SHA1 Message Date
dish 970dcca69c
treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
cswimr bb4ba2ab1c
starship: add xonsh shell configuration 2025-04-28 01:51:37 -05:00
Fernando Rodrigues d19a913454
nixos/starship: add transientPrompt option set for starship on fish shells
On `fish`, Starship supports transient prompts with no external dependencies.

This commit adds three options that allows users to edit the function bodies of
`starship_transient_prompt_func` and `starship_transient_rprompt_func` and call
`enable_transience` after the Starship initialisation code is sourced into the
shell.

This avoids the need for downstream NixOS configurations to use the
`programs.fish.promptInit` option with the `lib.mkAfter` function to correctly
enable transience.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-20 22:19:18 -03:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
éclairevoyant debb92775e nixos/starship: cleanup 2024-03-20 21:08:43 +11:00
éclairevoyant 4f9d91e276 nixos/starship: allow setting package 2024-03-20 21:08:43 +11:00
linsui 68543ba85f nixos/starship: add presets 2023-12-26 03:48:01 +08:00
Reed Riley ed84add157 nixos/starship: add comment describing why this uses a hardcoded path 2023-11-22 11:17:03 -08:00
Reed Riley 71d9dab8f0 starship: change logic that sets STARSHIP_CONFIG so that it won't override a user-provided config 2023-11-17 11:17:52 -08:00
Ivan Malison cd3b658167
starship: Remove INSIDE_EMACS checks (#239039)
Many of the terminals supported inside emacs work perfectly fine with STARSHIP.
The TERM=dumb case already handles the tramp and eterm cases, so as far as I can
tell, this is basically just a check for the benefit of OLD versions of
term-mode (see
https://www.emacswiki.org/emacs/AnsiTerm#:~:text=Historically%2C%20'M%2Dx%20ansi%2Dterm,the%20older%20'C%2Dc'%20binding.,
which indicates that it also now handles colors)
2023-06-26 20:37:10 +02:00
figsoda 928c8115ba nixos/starship: add interactiveOnly option 2023-03-12 21:23:23 -04:00
pennae ef176dcf7e nixos/*: automatically convert option descriptions
conversions were done using https://github.com/pennae/nix-doc-munge
using (probably) rev f34e145 running

    nix-doc-munge nixos/**/*.nix
    nix-doc-munge --import nixos/**/*.nix

the tool ensures that only changes that could affect the generated
manual *but don't* are committed, other changes require manual review
and are discarded.
2022-08-31 16:32:53 +02:00
pennae da37ca6760 nixos/programs: invariant option docs MD conversions 2022-07-24 13:01:18 +02:00
Daniel Thwaites 3f1ef8fe14
nixos/starship: init 2022-01-12 15:47:08 +00:00