feat(zsh): add some nice to haves
This commit is contained in:
parent
eb3eea721d
commit
565d9b8948
3 changed files with 28 additions and 16 deletions
|
@ -2,26 +2,36 @@
|
|||
{
|
||||
config = lib.mkIf (config.cli.shell == "zsh") {
|
||||
home.sessionVariables.SHELL = "zsh";
|
||||
home.persistence."/persist/home/${config.snowfallorg.user.name}".files = [ ".zsh_history" ];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableVteIntegration = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
history.share = true;
|
||||
history.size = 10000;
|
||||
history.ignoreDups = true;
|
||||
history.ignoreSpace = true;
|
||||
initContent =
|
||||
lib.mkOrder 1200
|
||||
# zsh
|
||||
''
|
||||
RPROMPT='[%D{%L:%M:%S %p}]'
|
||||
|
||||
TMOUT=1
|
||||
|
||||
TRAPALRM() {
|
||||
zle reset-prompt
|
||||
}
|
||||
'';
|
||||
historySubstringSearch.enable = true;
|
||||
history = {
|
||||
append = true;
|
||||
extended = true;
|
||||
ignoreDups = true;
|
||||
ignoreSpace = true;
|
||||
save = 10000;
|
||||
share = true;
|
||||
size = 10000;
|
||||
};
|
||||
};
|
||||
programs.zsh.initContent = lib.mkIf config.cli.enableScreensaver (
|
||||
lib.mkOrder 1200
|
||||
# zsh
|
||||
''
|
||||
setopt PROMPT_SUBST
|
||||
PROMPT='> '
|
||||
RPROMPT='[%D{%L:%M:%S %p}]'
|
||||
|
||||
TMOUT=1
|
||||
|
||||
TRAPALRM() {
|
||||
zle reset-prompt
|
||||
}
|
||||
''
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue