2024-02-29 22:20:26 -05:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}: {
|
|
|
|
|
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
|
|
|
|
|
|
|
|
|
programs.zsh = {
|
|
|
|
|
enable = true;
|
2024-03-18 11:55:59 -04:00
|
|
|
autosuggestion.enable = true;
|
2024-02-29 22:20:26 -05:00
|
|
|
syntaxHighlighting.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;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dirHashes = {
|
|
|
|
|
music = "$HOME/Music";
|
|
|
|
|
media = "/run/media/$USER";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
shellAliases = import ./aliases.nix {inherit pkgs lib config;};
|
|
|
|
|
plugins = [
|
|
|
|
|
{
|
|
|
|
|
name = "zsh-nix-shell";
|
2024-04-16 13:19:02 -04:00
|
|
|
src = pkgs.zsh-nix-shell;
|
2024-02-29 22:20:26 -05:00
|
|
|
}
|
2024-04-16 13:19:02 -04:00
|
|
|
# zsh-history
|
|
|
|
|
# zsh-fzf-tab
|
|
|
|
|
# zsh-f-sy-h
|
|
|
|
|
# zsh-autocomplete
|
|
|
|
|
# zsh-you-should-use
|
|
|
|
|
# zsh-navigation-tools
|
2024-02-29 22:20:26 -05:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|