mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 15:41:02 +01:00
17 lines
379 B
Nix
17 lines
379 B
Nix
let
|
|
body = ''
|
|
mkdir --parents "$1" && cd "$1"
|
|
'';
|
|
in
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
siteFunctions.mkcd = body;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-path/share/zsh/site-functions/mkcd
|
|
assertFileContent home-path/share/zsh/site-functions/mkcd ${builtins.toFile "mkcd" body}
|
|
assertFileContains home-files/.zshrc "autoload -Uz mkcd"
|
|
'';
|
|
}
|