summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashprompt5
1 files changed, 2 insertions, 3 deletions
diff --git a/.bashprompt b/.bashprompt
index 873746c..1ec822c 100644
--- a/.bashprompt
+++ b/.bashprompt
@@ -50,14 +50,13 @@ __fontify ()
output+='\033['
local attributes=($@)
- local nb=$#
- for ((i=0; i<nb; i++))
+ for ((i=0; i<$#; i++))
do
a=${attributes[${i}]}
output+=${codes[${a}]}
- if ((i<nb-1))
+ if ((i<$#-1))
then
output+=';'
else