summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 07:42:49 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 07:42:49 +0100
commit275a9d513efec4f7f449e2b311b68c1965007c15 (patch)
treedea1f40d045cfbf412e31d223b7b7e4bd84ccd4c
parent1e2135f0b2ceb9ee95247fc61bad9632a9d47888 (diff)
downloaddotfiles-275a9d513efec4f7f449e2b311b68c1965007c15.tar.xz
(m) Cleanup __fontify
- stop leaking variables - remove usnused array entry
-rw-r--r--.bashprompt3
1 files changed, 1 insertions, 2 deletions
diff --git a/.bashprompt b/.bashprompt
index 062dd26..9728a3a 100644
--- a/.bashprompt
+++ b/.bashprompt
@@ -78,12 +78,11 @@ __fontify ()
codes[white]='37'
codes[bold]='1'
codes[dim]='2'
- codes[clear]='0'
local text=$1
shift
- output=$(__start-nonprinting)
+ local output=$(__start-nonprinting)
output+='\E['
for ((i=1; i<=$#; i++))