This commit is contained in:
Jonas Forsberg 2021-11-12 12:49:44 +01:00
parent 727a31547c
commit 6fe1bd3e0c
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 11 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function set_bash_prompt () {
local COLOR_PATH="\033[0;37m" local COLOR_PATH="\033[0;37m"
local COLOR_EXIT_STATUS="[\033[1;37m\033[41m" local COLOR_EXIT_STATUS="[\033[1;37m\033[41m"
local COLOR_KUBERNETES="\033[1;37m\033[44m" local COLOR_KUBERNETES="\033[1;37m\033[44m"
local COLOR_TODO="'\033[1;30m''\033[43m'" local COLOR_TODO="\033[1;30m\033[43m"
local COLOR_DOTF="\033[1;37m\033[45m" local COLOR_DOTF="\033[1;37m\033[45m"
local CURRENT_CONTEXT="" local CURRENT_CONTEXT=""

10
.functions/todo.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
function t(){
todo.sh "$@"
}
function todo_status(){
NUM="$(todo.sh lsp "$1" | sed -n 's/.*TODO: \([0-9]\+\).*/\1/p')"
[[ "$NUM" -ne 0 ]] && echo "YES"
}