mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 12:22:17 +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
|
||||
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, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
hasPackage = pname: lib.any (p: p ? pname && p.name == pname) config.home.packages;
|
||||
hasKubectl = hasPackage "kubectl";
|
||||
in
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
|
@ -17,7 +12,6 @@ in
|
|||
gg = "git graph";
|
||||
gs = "git status";
|
||||
jqless = "jq -C | less -r";
|
||||
k = mkIf hasKubectl "kubectl";
|
||||
n = "nix";
|
||||
sshpass = "ssh -o PubkeyAuthentication=no";
|
||||
tf = "terraform";
|
||||
|
|
Loading…
Reference in a new issue