Commit Graph

8 Commits

Author SHA1 Message Date
Zitrone
940f817119 pkgs.wrapFish: document with docstrings
it is also (a bit less verbosely) documented in the manual
this documentation will eventually replace the one in the manual
2026-01-23 20:39:40 +01:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
r-vdp
97e3336a5b fish: use the subcommand style for the status command
The flag style has been deprecated and will eventually be removed.
2023-10-19 08:40:56 +02:00
Pol Dellaiera
1f89b89ec8 wrapFish: use writeShellApplication and add runtimeInputs 2022-10-18 08:12:03 +02:00
Pol Dellaiera
ee0a595504 wrapFish: Add localConfig and shellAliases parameters. 2022-09-22 09:46:21 +02:00
sheeaza
30d581b29d wrapFish: fix early variable expansion
the bash script will retrieve the $var and cause the variable expand to empty
add \ to prevent this, and let fish command to retrieve the variable
2021-10-28 23:10:08 +08:00
pacien
c6efc0b255 wrapFish: fix singleton expansion in shell init
This fixes the expansion of the configuration path in the pathological
case of a singleton, which would otherwise be used verbatim with the
surrounding braces for lookup.

GitHub: see https://github.com/NixOS/nixpkgs/pull/108491#pullrequestreview-590072603
2021-02-16 11:01:43 -08:00
pacien
ae5c662182 wrapFish: add fish shell wrapper package
This adds a wrapper for fish which allows creating shells pre-initialised
with some completions, functions, and configuration scripts from given paths
or from fish plugin packages (`pkgs.fishPlugins.*`).

This is especially handy when one wants to try a plugin in an ephemeral shell.

GitHub: see https://github.com/NixOS/nixpkgs/pull/107834#discussion_r550612519
2021-01-05 17:20:39 +01:00