54 lines
1.2 KiB
Nix
54 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 = ''
|
|
${pkgs.kitty}/bin/kitty + complete setup zsh | source /dev/stdin
|
|
${pkgs.any-nix-shell}/bin/any-nix-shell zsh --info-right | source /dev/stdin
|
|
'';
|
|
|
|
dotDir = "{config.xdg.configHome}zsh";
|
|
|
|
history.path = "${dotDir}/.zsh_history";
|
|
|
|
shellAliases = main.environment.shellAliases // config.home.shellAliases;
|
|
|
|
oh-my-zsh = {
|
|
enable = true;
|
|
plugins = [
|
|
# Display
|
|
"colorize"
|
|
"colored-man-pages"
|
|
|
|
# zsh modifications
|
|
"zsh-interactive-cd"
|
|
"command-not-found"
|
|
"sudo"
|
|
|
|
# Aliases
|
|
"alias-finder"
|
|
|
|
# Applications
|
|
## Python
|
|
"pip"
|
|
## Git
|
|
"gitignore"
|
|
## Vim
|
|
"fancy-ctrl-z"
|
|
];
|
|
};
|
|
};
|
|
|
|
starship.enableZshIntegration = lib.mkIf config.programs.starship.enable true;
|
|
};
|
|
}
|