config/modules/shell/zsh/default.nix

67 lines
1.3 KiB
Nix
Raw Normal View History

2024-02-29 22:20:26 -05:00
{
config,
lib,
pkgs,
...
}: {
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
programs.zsh = {
enable = true;
sessionVariables = {
LC_ALL = "en_US.UTF-8";
ZSH_AUTOSUGGEST_USE_ASYNC = "true";
SSH_AUTH_SOCK = "/run/user/1000/keyring/ssh";
};
history = {
save = 2137;
size = 2137;
expireDuplicatesFirst = true;
ignoreDups = true;
ignoreSpace = true;
};
initExtra = ''
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
'';
2024-02-29 22:20:26 -05:00
dirHashes = {
music = "$HOME/Music";
media = "/run/media/$USER";
};
shellAliases = import ./aliases.nix {inherit pkgs lib config;};
plugins = [
{
name = "zsh-nix-shell";
src = pkgs.zsh-nix-shell;
2024-02-29 22:20:26 -05:00
}
{
name = "zsh-history";
src = pkgs.zsh-history;
}
{
name = "zsh-fzf-tab";
src = pkgs.zsh-fzf-tab;
}
{
name = "zsh-f-sy-h";
src = pkgs.zsh-f-sy-h;
}
{
name = "zsh-autocomplete";
src = pkgs.zsh-autocomplete;
}
{
name = "zsh-you-should-use";
src = pkgs.zsh-you-should-use;
}
{
name = "zsh-navigation-tools";
src = pkgs.zsh-navigation-tools;
}
2024-02-29 22:20:26 -05:00
];
};
}