-
Notifications
You must be signed in to change notification settings - Fork 1
/
fish.nix
39 lines (39 loc) · 1.15 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
{ pkgs, ... }:
{
programs.fish = {
enable = true;
interactiveShellInit = "
set fish_greeting
";
plugins = [
{
name = "fzf.fish";
src = pkgs.fishPlugins.fzf-fish.src;
}
];
shellInit = "
fish_add_path ~/.local/share/bin/
fzf_configure_bindings --directory=\\cf
fzf_configure_bindings --git_log=\\cg
fzf_configure_bindings --git_status=\\cs
fzf_configure_bindings --history=\\cr
fzf_configure_bindings --variables=\\cv
fzf_configure_bindings --processes=\\cp
source ~/.nix-profile/etc/profile.d/nix.fish
set fzf_fd_opts --hidden
";
shellAbbrs = {
hms = "home-manager switch";
nrs = "sudo nixos-rebuild switch";
psl = "btm --expanded --default_widget_type=proc";
pst = "btm --expanded --default_widget_type=proc --tree";
rm = "trash";
vic = "vi /etc/nixos/configuration.nix";
vih = "vi ~/.config/home-manager";
vin = "vi ~/.config/nvim/init.lua";
sys = "systemctl";
syu = "systemctl --user";
make = "make -j";
};
};
}