feat(nix/prog/zsh): add history opts and init nix
This commit is contained in:
parent
12c11329ba
commit
7efb6e59b5
1 changed files with 18 additions and 1 deletions
19
nix/home.nix
19
nix/home.nix
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue