blob: 6338cb1bafe69380b624a6b4adb160b51d43b737 (
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
|
{
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 = {
update = "git add . && git commit -m \"$1\" && nix flake update && nh os switch .";
nos = "nh os switch .";
nob = "nh os boot .";
nfu = "nix flake update";
md = "mkdir -p";
rmf = "rm -rf";
untar = "tar -xzvf";
tarc = "tar -czvf";
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;
}
];
};
};
}
|