2024-10-05 00:27:30 +02:00
|
|
|
{ pkgs, ... }: {
|
2024-10-04 22:32:42 +02:00
|
|
|
programs.zsh = {
|
2024-08-31 16:04:57 +02:00
|
|
|
enable = true;
|
2024-10-05 00:27:30 +02:00
|
|
|
enableAutosuggestions = true;
|
2024-08-31 16:04:57 +02:00
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
|
|
|
|
shellAliases = {
|
|
|
|
cn = "cd ~/nix";
|
|
|
|
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
|
2024-10-05 00:27:30 +02:00
|
|
|
v = "hx";
|
|
|
|
cat = "bat";
|
2024-10-04 22:19:16 +02:00
|
|
|
pu = "sh ~/nix/modules/apps/home/zsh/scripts/push.sh";
|
|
|
|
ip = "sh ~/nix/modules/apps/home/zsh/scripts/ip.sh";
|
|
|
|
rb = "sh ~/nix/modules/apps/home/zsh/scripts/rebuild.sh";
|
2024-08-31 16:04:57 +02:00
|
|
|
fr = "sudo systemctl reboot --firmware";
|
|
|
|
up = "sudo nix flake update ~/nix";
|
|
|
|
del = "sudo nix-collect-garbage -d";
|
2024-09-19 10:10:40 +02:00
|
|
|
dn = "dotnet new console";
|
2024-09-18 11:15:01 +02:00
|
|
|
dr = "dotnet run";
|
2024-10-05 00:27:30 +02:00
|
|
|
backup = "tar -czvf ~/config_backup.tar.gz ~/.config/zsh";
|
2024-08-31 16:04:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
history.size = 1000000;
|
|
|
|
history.path = ".config/zsh/history";
|
2024-10-05 00:27:30 +02:00
|
|
|
|
|
|
|
# plugins = [
|
|
|
|
# {
|
|
|
|
# name = "zsh-autosuggestions";
|
|
|
|
# src = pkgs.fetchFromGitHub {
|
|
|
|
# owner = "zsh-users";
|
|
|
|
# repo = "zsh-autosuggestions";
|
|
|
|
# rev = "v0.4.0"; # Version
|
|
|
|
# sha256 = "sha256-bBqJCkhygrXqAfWBsvUNpXu9IrwLyn/ypmTRKSVP0Xw="; # Fetched hash
|
|
|
|
# };
|
|
|
|
# }
|
|
|
|
# ];
|
|
|
|
# };
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" "history-substring-search" ];
|
|
|
|
theme = "simple";
|
|
|
|
};
|
2024-08-31 16:04:57 +02:00
|
|
|
};
|
|
|
|
}
|