GBT car for todo.sh
This commit is contained in:
parent
8fde60e04d
commit
1b1cf28727
6
.gbt.sh
6
.gbt.sh
@ -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
4
.local/bin/todo_sh_status.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user