2024-11-08 18:23:40 +01:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
domain,
|
|
|
|
username,
|
2024-11-09 16:24:20 +01:00
|
|
|
nixpath,
|
2024-11-08 18:23:40 +01:00
|
|
|
...
|
|
|
|
}: {
|
2024-10-04 22:32:42 +02:00
|
|
|
programs.zsh = {
|
2024-08-31 16:04:57 +02:00
|
|
|
enable = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
|
|
|
enableCompletion = true;
|
2024-10-14 15:31:22 +02:00
|
|
|
autosuggestion.enable = true;
|
2024-08-31 16:04:57 +02:00
|
|
|
dotDir = ".config/zsh";
|
2024-10-18 18:09:30 +02:00
|
|
|
history.size = 1000000;
|
|
|
|
history.path = ".config/zsh/history";
|
2024-08-31 16:04:57 +02:00
|
|
|
|
|
|
|
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-11 00:39:34 +02:00
|
|
|
lg = "${pkgs.lazygit}/bin/lazygit";
|
2024-11-06 17:03:02 +01:00
|
|
|
rs = "z ~ && ssh root@45.145.42.193";
|
2024-11-08 18:23:40 +01:00
|
|
|
hs = "z ~ && ssh ${username}@${domain}";
|
2024-11-05 22:59:59 +01:00
|
|
|
su = "z ~ && su";
|
2024-11-09 16:24:20 +01:00
|
|
|
ip = "sh ~/${nixpath}modules/programs/zsh/scripts/ip.sh";
|
2024-11-11 18:49:02 +01:00
|
|
|
rb = "sh ~/${nixpath}modules/programs/zsh/scripts/rebuild.sh";
|
2024-10-15 20:13:25 +02:00
|
|
|
fr = "doas systemctl reboot --firmware";
|
2024-11-09 16:24:20 +01:00
|
|
|
up = "nix flake update --flake ~/${nixpath}";
|
2024-10-15 20:13:25 +02:00
|
|
|
del = "doas 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-08-31 16:04:57 +02:00
|
|
|
};
|
|
|
|
|
2024-10-05 00:31:24 +02:00
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
2024-10-14 15:31:22 +02:00
|
|
|
plugins = ["git" "history-substring-search"];
|
2024-10-05 00:31:24 +02:00
|
|
|
theme = "simple";
|
|
|
|
};
|
2024-08-31 16:04:57 +02:00
|
|
|
};
|
|
|
|
}
|