mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 17:32:19 +00:00
fish: move extra aliases to extras, add nugo function
This commit is contained in:
parent
68c6923f11
commit
3c3dbc4e21
2 changed files with 10 additions and 6 deletions
|
@ -21,4 +21,14 @@
|
||||||
trekscii # Cute startrek cli printer
|
trekscii # Cute startrek cli printer
|
||||||
vault # Hashicorp vault
|
vault # Hashicorp vault
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.fish = {
|
||||||
|
shellAbbrs = rec {
|
||||||
|
k = "kubectl";
|
||||||
|
};
|
||||||
|
|
||||||
|
functions = {
|
||||||
|
nugo = "hugo new content/posts/$argv/index.md";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
|
@ -1,9 +1,4 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
let
|
|
||||||
inherit (lib) mkIf;
|
|
||||||
hasPackage = pname: lib.any (p: p ? pname && p.name == pname) config.home.packages;
|
|
||||||
hasKubectl = hasPackage "kubectl";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -17,7 +12,6 @@ in
|
||||||
gg = "git graph";
|
gg = "git graph";
|
||||||
gs = "git status";
|
gs = "git status";
|
||||||
jqless = "jq -C | less -r";
|
jqless = "jq -C | less -r";
|
||||||
k = mkIf hasKubectl "kubectl";
|
|
||||||
n = "nix";
|
n = "nix";
|
||||||
sshpass = "ssh -o PubkeyAuthentication=no";
|
sshpass = "ssh -o PubkeyAuthentication=no";
|
||||||
tf = "terraform";
|
tf = "terraform";
|
||||||
|
|
Loading…
Reference in a new issue