-
Notifications
You must be signed in to change notification settings - Fork 1
/
fish.nix
30 lines (30 loc) · 990 Bytes
/
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
{config, ...}: {
programs.fish = {
interactiveShellInit = ''
set __fish_git_prompt_show_informative_status 1
set __fish_git_prompt_showcolorhints 1
set __fish_git_prompt_showdirtystate 1
set __fish_git_prompt_showstashstate 1
set __fish_git_prompt_showuntrackedfiles 1
'';
shellAliases =
{
"." = "ls";
py = "python";
nb = "vyxnix build";
nd = "vyxnix develop";
nl = "vyxnix log";
nf = "vyxnix fmt";
nfc = "vyxnix flake check";
nfu = "vyxnix flake update";
nflui = "vyxnix flake lock --update-input";
nr = "vyxnix run";
}
// builtins.mapAttrs (name: _v: "git ${name}") config.programs.git.aliases
// builtins.mapAttrs (name: _v: "ssh ${name}") config.programs.ssh.matchBlocks;
};
home.file = {
".config/fish/functions/blognew.fish".source = ./blognew.fish;
".config/fish/functions/blogserve.fish".source = ./blogserve.fish;
};
}