2023-09-15 07:17:54 +01:00
|
|
|
{ config, pkgs, catppuccin-themes, ... }: {
|
2023-09-15 07:13:52 +01:00
|
|
|
home.packages = with pkgs; [ dig silver-searcher gnumake ];
|
2023-07-05 11:08:23 +01:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableVteIntegration = true;
|
|
|
|
autocd = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
historySubstringSearch.enable = true;
|
|
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
2023-09-07 08:48:42 +01:00
|
|
|
initExtraFirst = ''
|
|
|
|
source ${catppuccin-themes.zsh}
|
|
|
|
'';
|
2023-09-13 17:41:48 +01:00
|
|
|
initExtra = ''
|
2023-09-13 19:57:39 +01:00
|
|
|
xdg-query-program () {
|
|
|
|
FILETYPE=$(xdg-mime query filetype $@)
|
|
|
|
DEFAULT=$(xdg-mime query default $FILETYPE)
|
|
|
|
echo "$FILETYPE -> $DEFAULT"
|
|
|
|
}
|
2023-09-13 17:41:48 +01:00
|
|
|
'';
|
2023-07-19 10:06:00 +01:00
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
# Productivity
|
|
|
|
"aliases"
|
|
|
|
"colored-man-pages"
|
|
|
|
"command-not-found"
|
|
|
|
"extract"
|
|
|
|
# Build tools
|
|
|
|
"git"
|
|
|
|
"gitignore"
|
|
|
|
# Misc
|
|
|
|
"lol"
|
|
|
|
"rand-quote"
|
|
|
|
];
|
|
|
|
theme = "";
|
|
|
|
};
|
2023-07-05 11:08:23 +01:00
|
|
|
};
|
2023-09-15 07:13:52 +01:00
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
2023-07-10 20:58:41 +01:00
|
|
|
fzf.enableZshIntegration = true;
|
2023-07-16 17:35:36 +01:00
|
|
|
keychain.enableZshIntegration = true;
|
|
|
|
starship.enableZshIntegration = true;
|
2023-03-29 15:38:01 +01:00
|
|
|
};
|
|
|
|
}
|