summaryrefslogtreecommitdiff
path: root/modules/programs/bash
AgeCommit message (Collapse)Author
2024-10-08programs/bash: move to completion.*isabel
a port of https://github.com/NixOS/nixpkgs/pull/291552 for darwin
2024-09-12{bash,zsh}: remove nix-shell early return in /etc/{bashrc,zshenv}Antoine Cotten
The condition does not match the comment, and therefore not the original intention. It currently returns early in *any* type of Nix shell, not just pure ones, including 'nix develop'. Besides being unnecessary, this check prevents Nix shells from functioning properly. For instance, it causes the initialization of the Zsh fpath to be skipped, which is critical. The fact that the user is unable to opt out of this behaviour makes this an ever bigger problem since /etc/zshenv is being loaded unconditionally by Zsh. For reference, NixOS does not perform such check, and apparently never did.
2024-04-19treewide: remove lib.mdDocWeijia Wang
2023-07-26Update modules/programs/bash/default.nixJakub Janczak
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2023-07-26Don't run static bashrc only for pure nix-shellJakub Janczak
2023-07-11doc: store a copy of known filesMichael Hoang
2023-06-24treewide: convert all option docs to MarkdownEmily
This process was automated by [my fork of `nix-doc-munge`]; thanks to @pennae for writing this tool! It automatically checks that the resulting documentation doesn't change, although my fork loosens this a little to ignore some irrelevant whitespace and typographical differences. As of this commit there is no DocBook remaining in the options documentation. You can play along at home if you want to reproduce this commit: $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \ nix shell nixpkgs#coreutils \ -c find . -name '*.nix' \ -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \ {} + [my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2020-10-25don't set SHELL automatically based on programs.<shell>.enableDaiderd Jordan
2020-06-17etc: add known hashes for bashrc/zsh/nix.confDaiderd Jordan
2020-01-21bash: Let bash load completions lazilyVäinö Järvelä
As described in detail here: https://github.com/NixOS/nixpkgs/issues/32533 bash will load completion scripts in $p/share/bash-completion/completions/ on startup instead of letting bash-completion do it's lazy loading. Bash startup will then slow down (very noticeable when bash-completion is installed in a profile). This commit leaves loading of scripts in the hands of bash-completion, improving startup time for everyone using `enableCompletion`. Fixes #101
2018-10-25Unify environment configuration and don't run in child shellsAndrew Childs
This should enable `nix run` to work under shells like fish and zsh, as well as making child shells not needlessly reset any environment that should be inherited. Implementation adapted from NixOS.
2018-10-16bash: place bashrc early non-interactive return below system setupMario Rodas
Setting PATH and environment setup is required in non-interactive shells
2018-10-14bash: do not evaluate completions on dumb terminalsMario Rodas
2018-10-14bash: do not evaluate /etc/bashrc on non-interactive shellsMario Rodas
2018-01-20bash: move fileDaiderd Jordan