mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add kubernetes in prompt
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"$hostname"
|
||||
"$python"
|
||||
"$nix_shell"
|
||||
"$kubernetes"
|
||||
"$line_break"
|
||||
"$directory"
|
||||
"[(\\($git_branch$git_commit$git_status$git_state\\) )](green)"
|
||||
@@ -97,6 +98,13 @@
|
||||
heuristic = true;
|
||||
};
|
||||
|
||||
kubernetes = {
|
||||
format = "[$symbol$context( \($namespace\))]($style)";
|
||||
# only show it if using a custom config
|
||||
detect_env_vars = ["KUBECONFIG"];
|
||||
disabled = false;
|
||||
};
|
||||
|
||||
hostname = {
|
||||
format = "[ $ssh_symbol$hostname]($style)";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user