diff --git a/.gbt.sh b/.gbt.sh index 4827156..b69f9c1 100644 --- a/.gbt.sh +++ b/.gbt.sh @@ -2,7 +2,7 @@ export GBT_SHELL="$0" 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, Custom4, 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' @@ -20,6 +20,10 @@ export GBT_CAR_CUSTOM3_TEXT_TEXT='.p' 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" +export GBT_CAR_CUSTOM4_TEXT_TEXT='T' +export GBT_CAR_CUSTOM4_BG='yellow' +export GBT_CAR_CUSTOM4_FG='black' +export GBT_CAR_CUSTOM3_DISPLAY_CMD="$HOME/.local/bin/todo_sh_status.sh" #Prompt forward: export GBT__SSH_IGNORE=(crs ap1 ap2 ap3 ap4) export GBT__HOME="${HOME}/go/src/github.com/jtyr/gbt" diff --git a/.local/bin/todo_sh_status.sh b/.local/bin/todo_sh_status.sh new file mode 100755 index 0000000..cc7ea9d --- /dev/null +++ b/.local/bin/todo_sh_status.sh @@ -0,0 +1,4 @@ +#!/bin/bash +NUM="$(todo.sh lsp "$1" | sed -n 's/.*TODO: \([0-9]\+\).*/\1/p')" +[[ "$NUM" -ne 0 ]] && echo "YES" +exit 0