Add kubernetes to starship.toml

This commit is contained in:
Dave Gallant
2022-08-10 09:59:06 -04:00
parent 27465c0463
commit d169075c93
3 changed files with 21 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
let let
nix-pre-commit-hooks = nix-pre-commit-hooks =
import (builtins.fetchTarball import (builtins.fetchTarball
"https://github.com/cachix/pre-commit-hooks.nix/tarball/master"); "https://github.com/cachix/pre-commit-hooks.nix/tarball/master");
in { in {
pre-commit-check = nix-pre-commit-hooks.run { pre-commit-check = nix-pre-commit-hooks.run {
src = ./.; src = ./.;

View File

@@ -91,6 +91,14 @@ in {
add_newline = false; add_newline = false;
scan_timeout = 10; scan_timeout = 10;
character = {error_symbol = "[](bold red)";}; character = {error_symbol = "[](bold red)";};
kubernetes = {
disabled = false;
context_aliases = {
".*stg_.*" = "stg";
".*test_.*" = "test";
".*prd_.*" = "prd";
};
};
}; };
}; };

View File

@@ -1,14 +1,14 @@
(import (import
( (
let let
lock = builtins.fromJSON (builtins.readFile ./flake.lock); lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in in
fetchTarball { fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; sha256 = lock.nodes.flake-compat.locked.narHash;
} }
) )
{ {
src = ./.; src = ./.;
}) })
.defaultNix .defaultNix