nix/hosts/phone/home/zsh/default.nix

28 lines
612 B
Nix
Raw Normal View History

2024-09-28 12:06:19 +02:00
{pkgs, ...}: {
2024-09-22 13:42:52 +02:00
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
dotDir = ".config/zsh";
initExtra = "PROMPT='%F{green}%~%f '";
2024-09-28 12:06:19 +02:00
2024-09-22 13:42:52 +02:00
shellAliases = {
v = "hx";
ser = "ssh root@joygnu.org";
2024-09-22 14:56:31 +02:00
rb = "nix-on-droid switch --flake ~/nix";
2024-09-22 13:42:52 +02:00
ep = "hx ~/.config/nix-on-droid/nix-on-droid.nix";
};
history.size = 1000000;
history.path = ".config/zsh/history";
oh-my-zsh = {
enable = true;
2024-09-28 12:06:19 +02:00
plugins = [
# "history-substring-search"
2024-09-22 13:42:52 +02:00
];
};
};
}