2023-08-09 22:10:48 +02:00
|
|
|
{ pkgs, lib, ... }: {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
loginExtra = ''
|
2023-10-15 07:51:17 +02:00
|
|
|
[ "$(tty)" = "/dev/tty1" ] && exec sway --unsupported-gpu
|
2023-08-09 22:10:48 +02:00
|
|
|
'';
|
2023-10-02 09:45:49 +02:00
|
|
|
sessionVariables = {
|
|
|
|
PASSWORD_STORE_DIR = "$HOME/.password-store";
|
|
|
|
};
|
2023-08-09 22:10:48 +02:00
|
|
|
shellAliases = {
|
2023-10-06 15:19:41 +02:00
|
|
|
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)";
|
2023-08-09 22:10:48 +02:00
|
|
|
gad = "git add . && git diff --cached";
|
|
|
|
gac = "ga && gc";
|
2023-09-16 12:04:43 +02:00
|
|
|
gach = "gac -C HEAD";
|
2023-08-09 22:10:48 +02:00
|
|
|
ga = "git add .";
|
|
|
|
gc = "git commit";
|
|
|
|
dev = "nix develop --command $SHELL";
|
2023-09-28 14:12:11 +02:00
|
|
|
la = "ls -alh";
|
2023-10-06 15:54:07 +02:00
|
|
|
torrent = "transmission-remote";
|
2023-08-09 22:10:48 +02:00
|
|
|
};
|
|
|
|
history = {
|
|
|
|
expireDuplicatesFirst = true;
|
|
|
|
};
|
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "zsh-powerlevel10k";
|
|
|
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
|
|
|
|
file = "powerlevel10k.zsh-theme";
|
|
|
|
}
|
2023-10-02 15:52:02 +02:00
|
|
|
{
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
file = "nix-shell.plugin.zsh";
|
|
|
|
src = "${pkgs.zsh-nix-shell}/share/zsh-nix-shell";
|
|
|
|
}
|
2023-08-09 22:10:48 +02:00
|
|
|
];
|
|
|
|
initExtra = ''
|
|
|
|
source "$HOME/.p10k.zsh"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|