From 8aac0b880c07bbb03a8ad2c24ffe79062b3d45e0 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 30 Mar 2020 10:26:30 +0200 Subject: [PATCH] Added dotfiles to GBT car --- .bashrc | 27 +++++++++++++-------------- .functions.sh | 1 + README.md | 4 ---- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.bashrc b/.bashrc index 8b81341..da215a7 100644 --- a/.bashrc +++ b/.bashrc @@ -28,25 +28,24 @@ if [[ -f ~/go/bin/gbt ]]; then export VIRTUAL_ENV_DISABLE_PROMPT=1 export GBT__SSH_CATCH_PSEUDO_TERMINAL=true export PS1='$(~/go/bin/gbt $?)' -# export GBT_CARS='OS, Git, Dir, Custom1, Custom2, Custom3, PyVirtEnv, Status, Sign' - export GBT_CARS='OS, Git, Dir, PyVirtEnv, Status, Sign' + export GBT_CARS='OS, Git, Dir, Custom1, Custom2, Custom3, PyVirtEnv, Status, Sign' export GBT_CAR_PYVIRTENV_FORMAT='{{ Icon }}' export GBT_CAR_DIR_BG='dark_gray' export GBT_CAR_DIR_DEPTH='3' export GBT_CAR_STATUS_FORMAT=' {{ Code }} ' export GBT_CAR_SIGN_USER_TEXT='' -# export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: error' -# export GBT_CAR_CUSTOM1_BG='red' -# export GBT_CAR_CUSTOM1_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_error" -# export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: err' -# export GBT_CAR_CUSTOM2_BG='green' -# export GBT_CAR_CUSTOM2_FG='black' -# export GBT_CAR_CUSTOM2_TEXT_TEXT='MyDot: commit' -# export GBT_CAR_CUSTOM2_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_status" -# export GBT_CAR_CUSTOM3_TEXT_TEXT='MyDot: push' -# export GBT_CAR_CUSTOM3_BG='green' -# export GBT_CAR_CUSTOM3_FG='black' -# export GBT_CAR_CUSTOM3_DISPLAY_CMD="/home/jonas/.local/bin/mydot_gbt_status.sh check_pull" + export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: error' + export GBT_CAR_CUSTOM1_BG='red' + export GBT_CAR_CUSTOM1_DISPLAY_CMD="$HOME/.local/bin/dotfiles_gbt_status.sh check_error" + export GBT_CAR_CUSTOM1_TEXT_TEXT='MyDot: err' + export GBT_CAR_CUSTOM2_BG='green' + export GBT_CAR_CUSTOM2_FG='black' + export GBT_CAR_CUSTOM2_TEXT_TEXT='MyDot: commit' + export GBT_CAR_CUSTOM2_DISPLAY_CMD="$HOME/.local/bin/dotfiles_gbt_status.sh check_status" + export GBT_CAR_CUSTOM3_TEXT_TEXT='MyDot: push' + export GBT_CAR_CUSTOM3_BG='green' + export GBT_CAR_CUSTOM3_FG='black' + export GBT_CAR_CUSTOM3_DISPLAY_CMD="$HOME/.local/bin/dotfiles_gbt_status.sh check_push" #Prompt forward: export GBT__SSH_IGNORE=(crs) export GBT__HOME="${HOME}/go/src/github.com/jtyr/gbt" diff --git a/.functions.sh b/.functions.sh index c43cc88..5b9b1e6 100644 --- a/.functions.sh +++ b/.functions.sh @@ -54,3 +54,4 @@ function doh() function copy_k8s_token(){ grep "id-token" ~/.kube/config | awk '{print $2}' | xclip -sel clip } + diff --git a/README.md b/README.md index b1a340f..0d55e58 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,3 @@ dotfiles config --local status.showUntrackedFiles no dotfiles add .bashrc dotfiles commit -m ".bashrc added" ``` - - - -