diff options
Diffstat (limited to 'bin/hibiki/prompt')
| -rwxr-xr-x | bin/hibiki/prompt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/hibiki/prompt b/bin/hibiki/prompt index a4ceb60..f4f8f27 100755 --- a/bin/hibiki/prompt +++ b/bin/hibiki/prompt @@ -1,9 +1,13 @@ #!/bin/bash +# make sure window title is set in terminals +SET_TERM_TITLE='\[\033]0;\u@\h:\w\007\]' + if [ "$1" == "err" ]; then color="\[$(tput setaf 1)\]" # red else color="\[$(tput setaf 10)\]" fi RESET="\[$(tput sgr0)\]" -echo "${color}\w${RESET} ❱ " + +echo "${SET_TERM_TITLE}${color}\w${RESET} ❱ " |