summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashprompt9
1 files changed, 3 insertions, 6 deletions
diff --git a/.bashprompt b/.bashprompt
index 31624ee..af2890e 100644
--- a/.bashprompt
+++ b/.bashprompt
@@ -48,14 +48,11 @@ __fontify ()
output=$(__start-nonprinting)
output+='\033['
- local attributes=($@)
-
- for ((i=0; i<$#; i++))
+ for ((i=1; i<=$#; i++))
do
- a=${attributes[${i}]}
- output+=${codes[${a}]}
+ output+=${codes[${!i}]}
- if ((i<$#-1))
+ if ((i<$#))
then
output+=';'
else