mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
oh-my-zsh: add 'preLoaded' option (#351810)
This commit is contained in:
commit
90d931b10e
1 changed files with 10 additions and 0 deletions
|
@ -87,6 +87,15 @@ in
|
||||||
Without this option it would default to the read-only nix store.
|
Without this option it would default to the read-only nix store.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
preLoaded = lib.mkOption {
|
||||||
|
type = lib.types.lines;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Shell commands executed before the `oh-my-zsh` is loaded.
|
||||||
|
For example, to disable async git prompt write `zstyle ':omz:alpha:lib:git' async-prompt force` (more information https://github.com/ohmyzsh/ohmyzsh?tab=readme-ov-file#async-git-prompt)
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -120,6 +129,7 @@ in
|
||||||
ZSH_CACHE_DIR=${cfg.cacheDir}
|
ZSH_CACHE_DIR=${cfg.cacheDir}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
${cfg.preLoaded}
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue