Aliases to be defined in the wrapped package's .zshrc file. Aliases
can either be a string defining the command to be aliased, or a struct
where you can define the command and if the alias should be global.
See the documentation for valid options.
attrsOf<either<string, struct<global alias>>>{
G = {
command = "| grep";
global = true;
};
ls = "ls --color";
}Runtime dependencies to be injected into the wrapped package's path.
listOf<derivation>zsh script to be injected after the zshrcFiles option in the wrapped
package's .zshrc.
string# zoxide must be added at the end of the .zshrc so we use extraZshrc.
# https://github.com/ajeetdsouza/zoxide?tab=readme-ov-file#installation
eval "$(zoxide init zsh)"
zsh files to be sourced at the end of the wrapped package's .zshrc file.
listOf<pathLike>The zsh package to be wrapped.
derivationPlugins to be appended to the wrapped package's .zshrc.
If a value is a derivation, it will be sourced as
<derivation>/share/<derivation.pname>/<derivation.pname>.zsh which
should be compatible with the majority of plugins. If this path is
incorrect then the value may be defined as an attrSet containing the
attrs package and path and will be sourced as <package>/<path>.
listOf<either<derivation, struct<plugin>>>[
pkgs.zsh-autosuggestions
{
package = pkgs.nix-zsh-completions;
path = "share/zsh/plugins/nix/nix-zsh-completions.plugin.zsh";
}
];
Options to be enabled or disabled in the wrapped package's .zshrc file.
See the documentation for valid options.
attrsOf<bool>{
appendhistory = true;
autocd = false;
beep = false;
sharehistory = true;
}Environment variables to be defined in the wrapped package's .zshrc file.
attrs{
HISTFILE = "~/.histfile";
HISTSIZE = 5000;
}zsh script to be injected into the wrapped package's .zshrc.
string# Enable vim mode
bindkey -v
# Enable completions. A custom zcompdump location must be used as the
# default location will be $ZDOTDIR which is immutable.
autoload -Uz compinit
compinit -d ~/.cache/zsh/.zcompdump -C
zsh files to be sourced after the zshrc option in the wrapped package's .zshrc file.
listOf<pathLike>