From b8d2f5c35b22ae236dc7f00943bec8ca17af6c77 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 1 Feb 2020 23:04:52 +0100 Subject: Fix bash prompt functions overwriting shell variables --- .bash_prompt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.bash_prompt') diff --git a/.bash_prompt b/.bash_prompt index bf7a7b1..a922033 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -86,6 +86,7 @@ __fontify () echo -en '\E[' + local i for ((i=1; i<=$#; i++)) do echo -en ${codes[${!i}]} @@ -140,7 +141,7 @@ __signal-no-newline () __draw-rule () { - local line + local i line for ((i=$(__current-column); i