File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3
3
## Minor improvements
4
4
5
5
- [ #617 ] ( https://github.com/SovereignCloudStack/k8s-cluster-api-provider/pull/617 )
6
- Install kubectx on management node
6
+ Install kubectx on management node
7
+ - [ #618 ] ( https://github.com/SovereignCloudStack/k8s-cluster-api-provider/pull/618 )
8
+ Install kube_ps1 on management node
Original file line number Diff line number Diff line change 50
50
sudo mv kustomize /usr/local/bin/
51
51
fi
52
52
53
+ install_kube_ps1.sh
54
+
53
55
# setup aliases and environment
54
56
echo " # setup environment"
55
57
cat << EOF >> ~/.bash_aliases
@@ -62,8 +64,11 @@ source <( kubectl completion bash )
62
64
# clusterctl
63
65
source <( clusterctl completion bash )
64
66
67
+ # kube_ps1
68
+ source ~/.kube-ps1/kube-ps1.sh
69
+
65
70
# Error code in prompt
66
- PS1="\$ {PS1%\\\\\$ } [\\\$ ?]\\\$ "
71
+ PS1="\$ {PS1%\\\\\$ } \\\$ (kube_ps1) [\\\$ ?]\\\$ "
67
72
# We may do git commits and nano feels unusual ...
68
73
export VISUAL=/usr/bin/vim
69
74
# eof
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ KUBEPS1_VERSION=v0.8.0
4
+ echo " # install kube-ps1 $KUBEPS1_VERSION "
5
+ git clone --depth 1 --branch $KUBEPS1_VERSION https://github.com/jonmosco/kube-ps1 ~ /.kube-ps1
You can’t perform that action at this time.
0 commit comments