2023-11-18 10:51:24 +01:00
|
|
|
{ pkgs, ... }:
|
2023-11-14 15:50:11 +01:00
|
|
|
{
|
2023-11-18 10:51:24 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
loginExtra = ''
|
|
|
|
[ "$(tty)" = "/dev/tty1" ] && exec sway
|
|
|
|
'';
|
|
|
|
sessionVariables = {
|
|
|
|
PASSWORD_STORE_DIR = "$HOME/.password-store";
|
|
|
|
};
|
|
|
|
shellAliases = {
|
2023-11-19 12:29:07 +01:00
|
|
|
compress = "ffmpeg -vcodec libx265 -crf 28 compressed.mp4 -i";
|
2023-11-18 10:51:24 +01:00
|
|
|
cal = "cal $(date +%Y)";
|
|
|
|
ssh = "TERM=xterm-256color ssh";
|
|
|
|
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)";
|
|
|
|
gad = "git add . && git diff --cached";
|
|
|
|
gac = "ga && gc";
|
|
|
|
gach = "gac -C HEAD";
|
|
|
|
ga = "git add .";
|
|
|
|
gc = "git commit";
|
|
|
|
dev = "nix develop --command $SHELL";
|
|
|
|
la = "ls -alh";
|
|
|
|
torrent = "transmission-remote";
|
|
|
|
vi = "nvim";
|
|
|
|
};
|
|
|
|
history = {
|
|
|
|
expireDuplicatesFirst = true;
|
2023-11-14 15:50:11 +01:00
|
|
|
};
|
2023-11-18 10:51:24 +01:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "zsh-powerlevel10k";
|
|
|
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
|
|
|
|
file = "powerlevel10k.zsh-theme";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
file = "nix-shell.plugin.zsh";
|
|
|
|
src = "${pkgs.zsh-nix-shell}/share/zsh-nix-shell";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
initExtra = ''
|
|
|
|
source "$HOME/.p10k.zsh"
|
|
|
|
'';
|
2023-11-14 15:50:11 +01:00
|
|
|
};
|
|
|
|
}
|