-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh.nix
29 lines (27 loc) · 1.12 KB
/
zsh.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, pkgs, lib, ... }:
let
secrets = import ./secrets.nix;
in
{
programs.starship.enable = true;
programs.zsh = {
enable = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
# Shell init can only run on local machine, not on ssh, otherwise rsync breaks
shellInit = ''if echo "$-" | grep i > /dev/null; then cat ~/.cache/wal/sequences; fi; [ -n "$HELLO_WORLD" ] && kitten @ set-colors background=#1f1729'';
shellAliases = {
vim = "nvim";
config = "code /etc/nixos";
upgrade = "sudo nixos-rebuild switch --upgrade --impure --flake path:///etc/nixos#beauregard";
upgrade-barkley = "nixos-rebuild switch --flake path:///etc/nixos#barkley --use-remote-sudo --target-host [email protected] --build-host [email protected]";
upgrade-higgins = "nixos-rebuild switch --flake path:///etc/nixos#higgins --use-remote-sudo --target-host [email protected] --build-host [email protected]";
upgrade-local = "sudo nixos-rebuild switch -I nixpkgs=.";
k = "kubectl";
};
ohMyZsh = {
enable = true;
plugins = [ "git" "z" ];
};
};
}