flake: Initialise new repository
This commit is contained in:
commit
1eb25ada72
41 changed files with 1657 additions and 0 deletions
40
modules/home-manager/shell/zsh.nix
Normal file
40
modules/home-manager/shell/zsh.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
# enableVteIntegration = true;
|
||||
dotDir = ".config/zsh";
|
||||
history = {
|
||||
path = "${config.xdg.stateHome}/zsh/zsh_history";
|
||||
extended = true;
|
||||
};
|
||||
autosuggestion.enable = true;
|
||||
autocd = true;
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
highlighters = [
|
||||
"main"
|
||||
"cursor"
|
||||
"brackets"
|
||||
"root"
|
||||
];
|
||||
};
|
||||
initContent = # sh
|
||||
''
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
||||
setopt COMPLETE_IN_WORD
|
||||
setopt ALWAYS_TO_END
|
||||
setopt PATH_DIRS
|
||||
setopt AUTO_MENU
|
||||
setopt AUTO_LIST
|
||||
setopt MENU_COMPLETE
|
||||
'';
|
||||
|
||||
completionInit = # sh
|
||||
''
|
||||
autoload -U compinit && compinit
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue