Files
nix-thinkcentre/home/cli/zsh.nix

29 lines
627 B
Nix
Raw Permalink Normal View History

2025-10-11 19:10:48 +05:00
{ pkgs, ... }: {
programs.zsh = {
enable = true;
package = pkgs.zsh;
plugins = [{
name = "zsh-autosuggestions";
src = pkgs.zsh-autosuggestions;
}
{
name = "zsh-highlighting";
src = pkgs.zsh-syntax-highlighting;
}];
shellAliases =
let
args = "--impure --flake";
flake = "/home/fox/conf";
in {
"switch" = "sudo nixos-rebuild switch ${args} ${flake}#lenovo";
"home-switch" = "home-manager switch ${args} ${flake}#fox";
"clean-nix" = "sudo nix-collect-garbage -d";
"un" = "adb shell pm uninstall -k";
};
initExtra = ''
export PROMPT="%m %2~ %B::%b "
'';
};
}