GBT car for todo.sh

This commit is contained in:
Jonas Forsberg 2020-05-20 12:12:08 +02:00
parent 8fde60e04d
commit 1b1cf28727
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@ export GBT_SHELL="$0"
export VIRTUAL_ENV_DISABLE_PROMPT=1 export VIRTUAL_ENV_DISABLE_PROMPT=1
export GBT__SSH_CATCH_PSEUDO_TERMINAL=true export GBT__SSH_CATCH_PSEUDO_TERMINAL=true
export PS1='$(~/go/bin/gbt $?)' 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_PYVIRTENV_FORMAT='{{ Icon }}'
export GBT_CAR_DIR_BG='dark_gray' export GBT_CAR_DIR_BG='dark_gray'
export GBT_CAR_DIR_DEPTH='3' 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_BG='green'
export GBT_CAR_CUSTOM3_FG='black' export GBT_CAR_CUSTOM3_FG='black'
export GBT_CAR_CUSTOM3_DISPLAY_CMD="$HOME/.local/bin/dotfiles_gbt_status.sh check_push" 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: #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"

4
.local/bin/todo_sh_status.sh Executable file
View File

@ -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