r/o

fish, jujutsu: add resolve shortcut; suppress builtin editor hint. fadc9f4d parent f1d73ba4

authored by ~talya

1
{
2
config,
3
lib,
4
...
5
}: {
6
programs.fish = {
7
interactiveShellInit = ''
8
set __fish_git_prompt_show_informative_status 1
9
set __fish_git_prompt_showcolorhints 1
10
set __fish_git_prompt_showdirtystate 1
11
set __fish_git_prompt_showstashstate 1
12
set __fish_git_prompt_showuntrackedfiles 1
13
set fish_greeting 'Nyonk!'
14
'';
15
shellAliases =
16
{
17
"." = "eza --git --git-repos";
18
py = "python";
19
nb = "vyxnix build";
20
nd = "vyxnix develop";
21
nl = "vyxnix log";
22
nf = "vyxnix fmt";
23
nfc = "vyxnix flake check";
24
nfu = "vyxnix flake update";
25
nr = "vyxnix run";
26
ns = "vyxnix shell";
27
jj = "echo use A/C";
28
}
29
// (let
30
jjAliases = {
31
"d" = "diff";
32
"h" = "show";
33
"l" = "log";
34
"ln" = "log --no-pager";
35
"m" = "describe -m";
36
"mm" = "describe";
37
"n" = "new";
38
"e" = "edit";
39
"a" = "abandon";
40
"z" = "restore";
41
"q" = "squash";
42
"p" = "split";
43
"r" = "rebase";
44
"b" = "bookmark set";
45
"gp" = "git push";
46
"gf" = "git fetch";
47
"v" = "resolve";
48
};
49
in
50
lib.concatMapAttrs (lhs: rhs: {
51
"A${lhs}" = "A ${rhs}";
52
"C${lhs}" = "C ${rhs}";
53
})
54
jjAliases)
55
// builtins.mapAttrs (name: _v: "git ${name}") config.programs.git.aliases
56
// builtins.mapAttrs (name: _v: "ssh ${name}") config.programs.ssh.matchBlocks;
57
};
58
home.file = {
59
".config/fish/functions/blognew.fish".source = ./blognew.fish;
60
".config/fish/functions/blogserve.fish".source = ./blogserve.fish;
61
".config/fish/functions/A.fish".source = ./A.fish;
62
".config/fish/functions/C.fish".source = ./C.fish;
63
};
64
}
65