diff options
Diffstat (limited to '.bashprompt')
| -rw-r--r-- | .bashprompt | 5 |
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 |
