blob: 172d192909918af5a2ebd77fb16af1c0080d85d0 (
plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{
config,
lib,
pkgs,
...
}:
let
cfg = config.hm.shell.fish;
in
{
options.hm.shell.fish.enable = lib.mkEnableOption "enables fish shell";
config = lib.mkIf cfg.enable {
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
fastfetch
'';
shellAliases = {
ns = "nix-search -p";
nd = "nix develop .";
nos = "nh os switch .";
nob = "nh os boot .";
nus = "nh os switch . -u";
nfu = "nix flake update";
md = "mkdir -p";
rmf = "rm -rf";
untar = "tar -xzvf";
tarc = "tar -czvf";
du = "dust -b";
awk = "choose";
dig = "doggo";
ping = "gping";
ps = "procs";
ff = "fastfetch";
cat = "bat";
yt = "yt-dlp";
};
plugins = [
{
name = "transient-fish";
src = pkgs.fishPlugins.transient-fish.src;
}
{
name = "fishbang";
src = pkgs.fishPlugins.fishbang.src;
}
{
name = "puffer";
src = pkgs.fishPlugins.puffer.src;
}
{
name = "pisces";
src = pkgs.fishPlugins.pisces.src;
}
# {
# name = "fzf-fish";
# src = pkgs.fishPlugins.fzf-fish.src;
# }
{
name = "fish-you-should-use";
src = pkgs.fishPlugins.fish-you-should-use.src;
}
{
name = "colored-man-pages";
src = pkgs.fishPlugins.colored-man-pages.src;
}
# {
# name = "fifc";
# src = pkgs.fishPlugins.fifc.src;
# }
];
};
};
}
|