I have been using oh-my-sh for the past few months, and gosh I love it :), I have noticed there is an array of colors fg_bold, and by using the array we can echo informative message with colors.
for example: echo $fg_bold[yellow] "Let's make it work!"
Executing this from terminal worked liked a charm.
BUT it seems if I open a brand new zsh script, and copy & paste it, it fails ($fg_bold[yellow] is empty):
#!/usr/bin/zsh #taken from
echo $fg_bold[yellow] "Let's make it work!"
More to add the fg_bold's array doesn't appear both in
env and in
What am i missing here?
Thank you all