added kube_gbt to turn on k8s PS1 info

This commit is contained in:
Jonas Forsberg 2021-05-20 08:39:10 +02:00
parent 1e30ec6541
commit adbbee208a
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
function kube_gbt(){
export GBT_CARS='OS, Custom4, Git, Kubectl, Dir, Custom1, Custom2, Custom3, PyVirtEnv, Status, Sign'
}
function k3sudo(){ function k3sudo(){
# create a passwordless sudo rule on target # create a passwordless sudo rule on target
# usage: k3sudo [add, del] <target ip/hostname> # usage: k3sudo [add, del] <target ip/hostname>

View File

@ -24,6 +24,8 @@ export GBT_CAR_CUSTOM4_TEXT_TEXT='T'
export GBT_CAR_CUSTOM4_BG='yellow' export GBT_CAR_CUSTOM4_BG='yellow'
export GBT_CAR_CUSTOM4_FG='black' export GBT_CAR_CUSTOM4_FG='black'
export GBT_CAR_CUSTOM4_DISPLAY_CMD="$HOME/.local/bin/todo_sh_status.sh" export GBT_CAR_CUSTOM4_DISPLAY_CMD="$HOME/.local/bin/todo_sh_status.sh"
#Kubernetes
export GBT_CAR_KUBECTL_FORMAT=' {{ Context }} '
#Prompt forward: #Prompt forward:
export GBT__SSH_IGNORE=(crs ap1 ap2 ap3 ap4) export GBT__SSH_IGNORE=(crs ap1 ap2 ap3 ap4)
export GBT__HOME="${HOME}/go/src/github.com/jtyr/gbt" export GBT__HOME="${HOME}/go/src/github.com/jtyr/gbt"