cfa00af99e6af5328e090e18066a3195147e5c86

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Add icons for kubectl and terraform prompt segments

Diff

 1diff --git a/boban.zsh-theme b/boban.zsh-theme
 2index f13214c8fa0c1e33481d2d4a190c32146dd4ae59..145e0eace7a12c6ef1b680043593df04b123c533 100644
 3--- a/boban.zsh-theme
 4+++ b/boban.zsh-theme
 5@@ -131,7 +131,7 @@ prompt_virtualenv() {
 6 prompt_aws() {
 7 	local aws_profile="$AWS_PROFILE"
 8 	if [[ -n $aws_profile ]]; then
 9-		prompt_segment black yellow "  $aws_profile"
10+		prompt_segment black yellow "󰸏 $aws_profile"
11 	fi
12 }
13 
14@@ -142,14 +142,14 @@ prompt_tf() {
15 	# check if in terraform dir
16 	if [ -d .terraform ]; then
17 		workspace=$(terraform workspace show 2> /dev/null) || return
18-		prompt_segment black magenta "[${workspace}]"
19+		prompt_segment black magenta "󱁢 ${workspace}"
20 	fi
21 }
22 
23 # Kubectl: current active kubeconfig file
24 prompt_kubectl() {
25 	if [[ -n $KUBECONFIG ]]; then
26-		prompt_segment magenta black "$(basename $KUBECONFIG)"
27+		prompt_segment magenta black "󱃾 $(basename $KUBECONFIG)"
28 	fi
29 }
30 
31@@ -178,9 +178,9 @@ build_prompt() {
32 	#RETVAL=$?
33 	#prompt_status
34 	prompt_context
35-	prompt_aws
36 	prompt_dir
37 	prompt_virtualenv
38+	prompt_aws
39 	prompt_kubectl
40 	prompt_tf
41 	prompt_git