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
1 changed files with 18 additions and 1 deletions

View File

@ -28,12 +28,29 @@ in
defaultKeymap = "viins";
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 = {
enable = true;
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 = {