🚀 add command substitiution function
parent
fe4f5bdd26
commit
a28025ffaa
|
@ -12,7 +12,12 @@
|
||||||
./spotify.nix
|
./spotify.nix
|
||||||
./yubikey.nix
|
./yubikey.nix
|
||||||
];
|
];
|
||||||
modules.cli.shell = let editor = "emacsclient -t -a 'emacs -t'";
|
modules.cli.shell = let
|
||||||
|
editor = "emacsclient -t -a 'emacs -t'";
|
||||||
|
cmdSub = command:
|
||||||
|
"${
|
||||||
|
if (config.modules.cli.shell.name == "fish") then "" else "$"
|
||||||
|
}${command}";
|
||||||
in {
|
in {
|
||||||
name = "fish";
|
name = "fish";
|
||||||
abbreviations = {
|
abbreviations = {
|
||||||
|
@ -50,9 +55,8 @@
|
||||||
|
|
||||||
nixpkgs-review = "nixpkgs-review-checks";
|
nixpkgs-review = "nixpkgs-review-checks";
|
||||||
|
|
||||||
nixpkgs-pr = "nixpkgs-review pr --token ${
|
nixpkgs-pr =
|
||||||
if (config.modules.cli.shell.name == "fish") then "" else "$"
|
"nixpkgs-review pr --token ${cmdSub "cat /run/agenix/github"}";
|
||||||
}(cat /run/agenix/github)";
|
|
||||||
|
|
||||||
latexwatch =
|
latexwatch =
|
||||||
''find -type f -name "*.tex" | entr -c latexmk -pdf -silent'';
|
''find -type f -name "*.tex" | entr -c latexmk -pdf -silent'';
|
||||||
|
|
Loading…
Reference in New Issue