From 9576b878c803156985853b0a2f2f27228116ae98 Mon Sep 17 00:00:00 2001 From: tbhaxor Date: Thu, 14 Mar 2019 13:11:04 +0530 Subject: [PATCH] :bug: fix in prompt --- themes/parrot/parrot.theme.bash | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/parrot/parrot.theme.bash b/themes/parrot/parrot.theme.bash index 1aa0ab93..afc8dd53 100644 --- a/themes/parrot/parrot.theme.bash +++ b/themes/parrot/parrot.theme.bash @@ -9,20 +9,20 @@ function parse_git_branch_no_color() { echo -e "$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')" } -function promp() { +function prompt() { # If not running interactively, don't do anything [[ $- != *i* ]] && return - force_color_prompt=yes + local force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then # We have color support; assume it's compliant with Ecma-48 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such # a case would tend to support setf rather than setaf.) - color_prompt=yes + local color_prompt=yes else - color_prompt= + local color_prompt= fi fi @@ -34,3 +34,4 @@ function promp() { fi } +safe_append_prompt_command prompt