first commit
This commit is contained in:
32
home/programs/zsh/default.nix
Normal file
32
home/programs/zsh/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
python3
|
||||
zsh-nix-shell
|
||||
nix-zsh-completions
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
update = "sudo nixos-rebuild switch";
|
||||
};
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
enableVteIntegration = true;
|
||||
history = {
|
||||
expireDuplicatesFirst = true;
|
||||
size = 100000000000;
|
||||
path = "${config.xdg.dataHome}/zsh/zsh/history";
|
||||
};
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
initExtra = ''
|
||||
PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# '
|
||||
RPROMPT='[%F{yellow}%?%f]'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user