2024-12-13 23:27:33 -05:00
|
|
|
{
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
autosuggestion = {
|
|
|
|
enable = true;
|
|
|
|
strategy = [ "history" "completion" ];
|
|
|
|
};
|
|
|
|
syntaxHighlighting = {
|
|
|
|
enable = true;
|
|
|
|
highlighters = [ "brackets" "cursor" ];
|
|
|
|
};
|
|
|
|
autocd = true;
|
|
|
|
defaultKeymap = "emacs";
|
|
|
|
antidote = {
|
|
|
|
enable = true;
|
|
|
|
useFriendlyNames = true; # why not?
|
|
|
|
plugins = [
|
|
|
|
"zsh-users/zsh-completions"
|
|
|
|
"romkatv/powerlevel10k"
|
|
|
|
"Aloxaf/fzf-tab"
|
|
|
|
"ohmyzsh/ohmyzsh path:plugins/colored-man-pages"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
history = {
|
|
|
|
ignoreDups = true;
|
|
|
|
ignoreAllDups = true;
|
|
|
|
ignoreSpace = true;
|
|
|
|
save = 50000;
|
|
|
|
size = 50000;
|
|
|
|
append = true;
|
|
|
|
};
|
|
|
|
historySubstringSearch= {
|
|
|
|
enable = true;
|
|
|
|
searchUpKey = "^p";
|
|
|
|
searchDownKey = "^n";
|
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
source ${./p10k.zsh}
|
|
|
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
|
|
|
zstyle ':completion:*' menu no
|
|
|
|
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls $realpath'
|
|
|
|
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-prewview 'ls $realpath'
|
|
|
|
'';
|
|
|
|
shellAliases = {
|
|
|
|
"vi" = "nvim";
|
|
|
|
"vim" = "nvim";
|
|
|
|
"t" = "tmux";
|
|
|
|
"tl" = "tmux list-sessions";
|
|
|
|
"ta" = "tmux new-session -A -s";
|
|
|
|
"se" = "sudoedit";
|
|
|
|
"s" = "sudo";
|
|
|
|
"nrs" = "sudo nixos-rebuild switch --flake .";
|
|
|
|
"nrt" = "sudo nixos-rebuild test --flake .";
|
2024-12-13 23:31:56 -05:00
|
|
|
"hrs" = "home-manager switch --flake .";
|
2024-12-14 13:38:09 -05:00
|
|
|
"g" = "git";
|
|
|
|
"ga" = "git add";
|
|
|
|
"gaa" = "git add --all";
|
|
|
|
"gb" = "git branch";
|
|
|
|
"gc" = "git commit --verbose";
|
|
|
|
"gcmsg" = "git commit --message";
|
|
|
|
"gd" = "git diff";
|
|
|
|
"gdca" = "git diff --cached";
|
|
|
|
"gds" = "git diff --staged";
|
|
|
|
"gl" = "git log --stat";
|
|
|
|
"glg" = "git log --graph";
|
|
|
|
"glga" = "git log --graph --decorate --all";
|
|
|
|
"glo" = "git log --oneline --decorate";
|
|
|
|
"gp" = "git push";
|
|
|
|
"gr" = "git remote";
|
|
|
|
"gra" = "git remote add";
|
|
|
|
"grv" = "git remote --verbose";
|
|
|
|
"gs" = "git status --short";
|
|
|
|
"gss" = "git status";
|
2024-12-13 23:27:33 -05:00
|
|
|
};
|
|
|
|
sessionVariables = {
|
|
|
|
"FZF_DEFAULT_COMMAND" = "rg";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.zoxide = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
2024-12-14 00:09:44 -05:00
|
|
|
options = [ "--cmd cd" ];
|
2024-12-13 23:27:33 -05:00
|
|
|
};
|
2024-12-14 13:38:09 -05:00
|
|
|
|
|
|
|
programs.eza = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
2024-12-13 23:27:33 -05:00
|
|
|
}
|