2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.starship.enableZshIntegration = true;
|
|
|
|
programs.fzf.enableZshIntegration = true;
|
|
|
|
programs.zoxide.enableZshIntegration = true;
|
|
|
|
programs.yazi.enableZshIntegration = true;
|
2024-03-25 01:41:56 +01:00
|
|
|
programs.direnv.enableZshIntegration = true;
|
2024-03-25 04:09:58 +01:00
|
|
|
programs.kitty.shellIntegration.enableZshIntegration = true;
|
2024-03-31 01:43:52 +01:00
|
|
|
services.gpg-agent.enableZshIntegration = true;
|
2024-04-10 01:20:05 +02:00
|
|
|
programs.carapace.enableZshIntegration = false;
|
2024-03-24 23:39:49 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableCompletion = true;
|
2024-04-10 01:20:05 +02:00
|
|
|
initExtra = ''
|
|
|
|
#have the menu highlight while we cycle through options
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
#case insensitive completion
|
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
|
|
|
#allow completion from midword
|
|
|
|
setopt COMPLETE_IN_WORD
|
|
|
|
#move cursor to end of word after completing
|
|
|
|
setopt ALWAYS_TO_END
|
|
|
|
#complete aliases as well
|
|
|
|
setopt COMPLETE_ALIASES
|
|
|
|
#select first item when you press tab the first time.
|
|
|
|
setopt MENU_COMPLETE
|
|
|
|
|
|
|
|
'';
|
2024-03-24 23:39:49 +01:00
|
|
|
autocd = true;
|
|
|
|
history = {
|
|
|
|
ignoreAllDups = true;
|
|
|
|
extended = true;
|
|
|
|
};
|
|
|
|
shellAliases = {
|
|
|
|
ll = "ls -lh";
|
|
|
|
la = "-lha";
|
|
|
|
please = "sudo $(fc -ln -1)";
|
|
|
|
pyactivate = "source ./.venv/bin/activate";
|
|
|
|
};
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
highlighters = [
|
|
|
|
"main"
|
|
|
|
"brackets"
|
|
|
|
"pattern"
|
|
|
|
"regexp"
|
|
|
|
"cursor"
|
|
|
|
"root"
|
|
|
|
"line"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|