summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-02-01 23:04:52 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-02-01 23:04:52 +0100
commitb8d2f5c35b22ae236dc7f00943bec8ca17af6c77 (patch)
treee0189cffdc8d4c28e73078a1cadf6743dd035219
parentbb9776e51455faac274bc942977078f1b1806f28 (diff)
downloaddotfiles-b8d2f5c35b22ae236dc7f00943bec8ca17af6c77.tar.xz
Fix bash prompt functions overwriting shell variables
-rw-r--r--.bash_prompt3
1 files changed, 2 insertions, 1 deletions
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<COLUMNS; i++))
do