universe/users/profiles/shells/zsh.nix

61 lines
1.2 KiB
Nix

{ config, lib, pkgs, main, ... }: {
imports = [ ./common.nix ];
programs = {
zsh = rec {
enable = true;
enableCompletion = true;
enableVteIntegration = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
# defaultKeymap = "emacs";
initExtra = ''
kitty + complete setup zsh | source /dev/stdin
'';
dotDir = ".config/zsh";
history.path = "${dotDir}/.zsh_history";
shellAliases = main.environment.shellAliases;
oh-my-zsh = {
enable = true;
plugins = [
# Display
"colorize"
"colored-man-pages"
# zsh modifications
"zsh-interactive-cd"
"command-not-found"
# Aliases
"alias-finder"
# Applications
## Docker
"docker"
## Python
"pip"
"python"
## Systemd
"systemd"
## Git
"git"
"github"
"gitignore"
## Emacs
"emacs"
## Vim
"fancy-ctrl-z"
];
};
};
starship.enableZshIntegration = lib.mkIf config.programs.starship.enable true;
};
}