zsh: fix kubectl context
This commit is contained in:
		
							parent
							
								
									b62f8e262f
								
							
						
					
					
						commit
						53cdf4c643
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -48,7 +48,7 @@ precmd.has_kube() {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
precmd.kube_context() {
 | 
					precmd.kube_context() {
 | 
				
			||||||
    typeset kube_context=$(awk '($1 ~ "^current") {print $2}' $kube_config)
 | 
					    typeset kube_context=$(awk -F- '($1 == "current") {print $3}' $kube_config)
 | 
				
			||||||
    precmd.prompt.add $prompt_symbols[helm]
 | 
					    precmd.prompt.add $prompt_symbols[helm]
 | 
				
			||||||
    precmd.prompt.add $kube_context $prompt_colors[kube_context]
 | 
					    precmd.prompt.add $kube_context $prompt_colors[kube_context]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue