-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsh.nix
29 lines (27 loc) · 1.03 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, ... }: {
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'';
shellAliases = {
vim = "nvim";
config = "code /etc/nixos";
upgrade = "sudo nixos-rebuild switch --upgrade";
upgrade-woodhouse = "terraform -chdir=/etc/nixos/servers/woodhouse plan && terraform -chdir=/etc/nixos/servers/woodhouse apply -auto-approve";
upgrade-barkley = "terraform -chdir=/etc/nixos/servers/barkley plan && terraform -chdir=/etc/nixos/servers/barkley apply -auto-approve";
upgrade-local = "sudo nixos-rebuild switch -I nixpkgs=.";
k = "kubectl";
};
ohMyZsh = {
enable = true;
# customPkgs = with pkgs; [
# spaceship-prompt
# ];
# theme = "spaceship";
plugins = [ "git" "z" ];
};
};
}