summaryrefslogtreecommitdiff
path: root/modules/programs/zsh
AgeCommit message (Collapse)Author
2024-12-29fix(zsh): correct the path of zsh-fast-syntax-highlightingXingquan Liu
2024-11-07zsh: only run shell initialization in /etc/zshenv when RCs are enabledSam
2024-11-06Merge pull request #909 from motheki/fast-syntax-highlighting-supportMichael Hoang
Add support for zsh-fast-syntax-highlighting
2024-11-06Update modules/programs/zsh/default.nix Trevor Opiyo
Changes added by Enzime Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-11-05Update default.nixTrevor Opiyo
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-10-31zsh: enable by default as zsh is the default shell on macOSMichael Hoang
Historically this was a footgun because users would not always have this enabled leading to `darwin-rebuild` and other programs not being found.
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-09-11zsh: don't be noisy when scripts are run with -uSebastian Reuße
When a script specifies the shell option "nounset" as part of the shebang (e.g., via "#!/usr/bin/env -S zsh -u"), our initialization scripts would produce error messages of the form: __ETC_FOO_SOURCED: parameter not set These messages could probably be confusing to users when running such scripts. By providing a fall-back in the parameter expansion, we can avoid them. This patch does not address interactive shell start-up, where such messages may (or may not) be less problematic. NixOS/nixpkgs@7d84dbdf5b91439f798363559310d86b21bfa86c
2024-09-11zsh: let children shells set their fpathJörg Thalheim
Currently zshenv by default only sets fpath without exporting it. A parent shell would also not set those variables usually as they are shell local. It also sources a file called set-environment but this is protected by an environment variable called __NIX_DARWIN_SET_ENVIRONMENT_DONE. Hence any modification done by the parent shell should persist as long as __NIX_DARWIN_SET_ENVIRONMENT_DONE is not unset. This behavior deviates from what we do in bashrc and breaks common setups such as tmux/mosh or screen. NixOS/nixpkgs@55819e6c861f53450030eea832a76583a6786370
2024-09-10zsh: prefer Nix completions these from Zsh packageSebastian Reuße
Zsh ships some rudimentary completions for programs where upstream also ships their own completions (e.g., curl). So as not to shadow those completions, we need to prepend to the fpath instead of appending. NixOS/nixpkgs@8dad5a22399782a4ef681174219546cb050e580f
2024-09-10zsh: move fpath init from /etc/zshrc to /etc/zshenvJan Malakhovski
We want these to be set even when /etc/zshrc loading is disabled. NixOS/nixpkgs@f70e3f3738300ef1e94737c09364cd176893858f
2024-05-29add warning for enabling syntax highlighting and fast syntax highlightingTrevor Opiyo
2024-05-29Add support for zsh-fast-syntax-highlightingTrevor Opiyo
2024-05-20Change zsh default promptDominik Gleich
2024-04-19treewide: remove lib.mdDocWeijia Wang
2024-02-23etc: add known hash for `/etc/zshenv` and `/etc/nix/nix.conf`Evan Petousis
Adds support for DeterminateSystems installer 0.16.0 and later. Fixes #880.
2024-01-21Add option to disable zsh global compinitJōshin
Fixes #855.
2023-07-11doc: store a copy of known filesMichael Hoang
2023-07-10fix zsh eating output without new line endingCuichen Li
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
2019-01-04zsh: Add vendor-completions to fpathKirill Elagin
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-03-27zsh: fix nix run shells of nix 2.0Daiderd Jordan
2018-01-20zsh: remove shell wrapperDaiderd Jordan
2018-01-17zsh: don't clobber promptInit in a nix-shellDaiderd Jordan
Configure this yourself if you want a different prompt when a nix-shell is active.
2017-10-07system-build: change type of setEnvironment and setAliasesDaiderd Jordan
On NixOS system.build.setEnvironment also is a writeText
2017-10-07environment: include extraInit in set-environment scriptDaiderd Jordan
2017-10-07zsh: move environment variables to zshenvDaiderd Jordan
2017-07-18zsh: use container names for fzf docker completionDaiderd Jordan
2017-07-09bash: enable by defaultDaiderd Jordan
2017-07-09zsh: support nix-shell --run zshDaiderd Jordan
2017-06-21zsh: improve fzf docker completionDaiderd Jordan
2017-06-17zsh: add fzf completion for docker containersDaiderd Jordan
2017-06-13zsh: use custom fzf completionDaiderd Jordan
2017-05-15environment: include /usr/sbin and /sbin in systemPathDaiderd Jordan
Don't extend initial PATH adding extra entries should be done through appending environment.systemPath or manually extending it with environment.extraInit or similar options.
2017-05-13zsh: use explicit source instead of .Daiderd Jordan
2017-05-13zsh: link /share/zsh when enabledDaiderd Jordan
2017-03-05Added zsh-syntax-highlighting option to zsh programBrandon Kase
2017-02-21zsh: add options for fzf completion and gitDaiderd Jordan
2017-02-21fzf-history: don't enable by default and reverseDaiderd Jordan
2017-01-30add fzf history keybindings for zshDaiderd Jordan