This repository has been archived on 2024-09-22. You can view files and clone it, but cannot push or open issues or pull requests.
nix-on-droid/home/zsh/default.nix

35 lines
762 B
Nix
Raw Normal View History

2024-07-23 17:03:15 +02:00
{ pkgs, ... } :
{
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;
dotDir = ".config/zsh";
initExtra = "PROMPT='%F{green}%~%f '";
shellAliases = {
v = "hx";
cat = "bat";
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
pu = "bash ~/nix/home/zsh/push.sh";
fr = "sudo systemctl reboot --firmware";
ser = "ssh root@joygnu.org";
rb = "nix-on-droid switch --flake ~/.config/nix-on-droid";
};
history.size = 1000000;
history.path = ".config/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [
"history-substring-search"
"git"
];
};
};
}