feat(nix/prog/zsh): add history opts and init nix

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-05 17:02:37 +03:00
parent 12c11329ba
commit 7efb6e59b5

View file

@ -28,12 +28,29 @@ in
defaultKeymap = "viins"; defaultKeymap = "viins";
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history.path = "${config.xdg.dataHome}/zsh/zsh_history"; history = {
path = "${config.xdg.dataHome}/zsh/zsh_history";
expireDuplicatesFirst = true;
ignorePatterns = [
"rm *"
"kill *"
];
};
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "robbyrussell"; theme = "robbyrussell";
}; };
initExtraFirst = ''
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh;
fi
source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:$NIX_PATH}
'';
}; };
programs.git = { programs.git = {