-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfish.nix
65 lines (50 loc) · 1.65 KB
/
fish.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
catppuccin.fish.enable = true;
programs = {
fish = {
enable = true;
shellInit = ''
set fish_greeting ""
set -gx EDITOR hx
set -gx SUDO_EDITOR hx
'';
shellAliases = {
ls = "eza -gl --git --color=automatic";
tree = "eza --tree";
cat = "bat";
lsusb = "cyme --headings";
ip = "ip --color";
ipb = "ip --color --brief";
gac = "git add -A && git commit -a";
gp = "git push";
gst = "git status -sb";
htop = "btm -b";
neofetch = "fastfetch";
tf = "terraform";
tfi = "terraform init";
tfp = "terraform plan";
tfa = "terraform apply -auto-approve";
tfd = "terraform destroy -auto-approve";
tfo = "terraform output -json";
wgu = "sudo wg-quick up";
wgd = "sudo wg-quick down";
ts = "tailscale";
tst = "tailscale status";
tsu = "tailscale up --ssh --operator=$USER";
tsd = "tailscale down";
js = "juju status";
jsw = "juju status --watch 1s --color";
jsrw = "juju status --watch 1s --color --relations";
jdl = "juju debug-log";
open = "xdg-open";
k = "kubectl";
opget = "op item get \"$(op item list --format=json | jq -r '.[].title' | fzf)\"";
speedtest = "curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -";
cleanup-nix = "nh clean all --keep-since 10d --keep 3";
rln = "nh os switch /home/jon/nixos-config";
rlh = "nh home switch /home/jon/nixos-config";
rlb = "rln && rlh";
};
};
};
}