Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Prints an Intraway's core value in ASCCI art
#!/bin/bash
# File: core-values-greeting.sh
# Author: ichramm
# Description: Prints a core value in ASCCI art
# Usage: core-values-greeting.sh [core-value|login]
# Params:
# core-value: The core value to print , Accepted values: become,enjoy,more,strive,team,think,wow
# Prints a random core value if not set,
# Orints a greeting plus a random core value if it is set to 'login'
declare -a core_value_keys
declare -A core_value_names
declare -A core_value_descs
declare -A core_value_colors
declare -A core_value_ascii
core_value_keys=(become enjoy more strive think team wow);
core_value_names=(
[become]="Become trusted advisors"
[enjoy]="Enjoy the ride"
[more]="Do more with less"
[strive]="Strive to find a better way"
[team]="Build the best team"
[think]="Think incredible!"
[wow]="Wow through excellence & commitment"
);
core_value_descs=(
[become]=$(cat <<END_OF_CAT
Becoming trusted advisors of our customers is a major challenge. It is a
priority for us to be truly interested in our customers' success and to help
them meet their goals.
It is key to do more to create long-term relations, winning their admiration
and trust in order to become their main advisors.
END_OF_CAT
)
[enjoy]=$(cat <<END_OF_CAT
Knowing how to convey our thoughts and feelings that we are the kind of people
that never lose the sense of urgency and that are passionate about every task
we perform.
We like to discover and explore opportunities.
We love to show our entrepreneurial spirit and celebrate our achievements.
END_OF_CAT
)
[more]=$(cat <<END_OF_CAT
"Do more with less" is to believe in operational excellence for the team and
others. Using available resources wisely, carefully thinking and planning how
to achieve extraordinary results with less.
Knowing that it is possible and accomplishing the result is what matters.
END_OF_CAT
)
[strive]=$(cat <<END_OF_CAT
"Strive to find a better way" is a value that encourages us to find alternative
solutions, constantly take on challenges, and seek to improve each request,
process and solution.
Promoting challenges and innovation are key characteristics of the best teams.
END_OF_CAT
)
[team]=$(cat <<END_OF_CAT
You know that our company is committed to creating the most successful team. We
carefully choose the most talented people and promote a friendly and
cooperative environment, where everyone can grow professionally and personally.
It is important to care about our teammates and to expect a lot from others.
END_OF_CAT
)
[think]=$(cat <<END_OF_CAT
"This incredible" help us to imagine, build, and deliver state-of-the-art
products and services, which stand out and become inspirational references for
the whole industry. We value intelligence, proactivity, transparency, passion
for learning, and determination. It is important to care about our teammates
and to expect a lot from others.
END_OF_CAT
)
[wow]=$(cat <<END_OF_CAT
It is essential to be trustworthy, responsible, make every effort, respond with
agility and exceptional quality, and be passionate about the details.
END_OF_CAT
)
);
core_value_colors=(
[become]='\e[92m'
[enjoy]='\e[93m'
[more]='\e[94m'
[strive]='\e[94m'
[team]='\e[93m'
[think]='\e[91m'
[wow]='\e[94m'
)
core_value_ascii=(
[become]='ICAgICAgICAgICAgICAgICAgICAgICAuLicsLDs7LCwnLi4gICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4nOzpjbGxsbGNjY2NsbGxsYzo7Jy4KICAgICAgICAgICAgICAuJztjY2M6OywnLi4uLi4uLi4uLicsOzpjY2M7Jy4KICAgICAgICAgICAgLjpjY2M7Li4gICAgICAgICAgICAgICAgICAuLjtjY2M6LgogICAgICAgICAgLjpsYzonLiAgICAgICAgICAgICAgICAgICAgICAgIC4nOmxsOi4KICAgICAgICAuOmNjOi4gICAgICAgICAgICAgIC4uICAgICAgICAgICAgICAuOmNjOi4KICAgICAgICdjY2MnICAgICAgICAgICAgICAuYycuOjsgICAgICAgICAgICAgICdjY2MnCiAgICAgICdjY2MuICAgICAgICAgICAgICAgLDogIC46OyAgICAgICAgICAgICAgLmNjYycKICAgICAuY2NjLiAgICAgICAgICAgICAgIC5jJyAgICdjLiAgICAgICAgICAgICAgLmNjYy4KICAgIC5jbGMnICAgICAgICAuLi4uICAuLDsuICAgIDtjLi4uLi4uICAgICAgICAgICdjbGMuCiAgICAnbGw6ICAgICAgIC46LCcnJzo7Jy4gICAgICAuJy4uJycnJyw7LCAgICAgICAgOmxsJwogICAgLGNsLCAgICAgICAnYyAgICAnLiAgICAgICAgICAgICAgICAgLmMnICAgICAgICxsYywKICAgIDtjYycgICAgICAgJ2MgICAgJy4gICAgICAgICAgICAgIC4uLiw6LiAgICAgICAnY2M7CiAgICAsbGwsICAgICAgICdjICAgICcgICAgICAgICAgICAgICAgICAnOiAgICAgICAgO2xsLAogICAgLmxsYy4gICAgICAnYyAgICAnICAgICAgICAgICAgICAuLi4sYy4gICAgICAgLmNsbC4KICAgICA6bGMnICAgICAgJ2MgICAgJy4gICAgICAgICAgICAgICAgJ2MgICAgICAgICdjbDoKICAgICAuY2NjLiAgICAgJ2MuJycuJy4gICAgICAgICAgICAgLi46Oi4gICAgICAgLmNjYy4KICAgICAgLmNjYy4gICAgJ2MuJycuOzo7LCcuLi4gICAgICAgIC46LCAgICAgICAnY2NjLgogICAgICAgLmNjYywgICAgLjs7OzssLiAuLi4nLCw7Ozs7Ozs7LC4gICAgICAgLGNjOi4KICAgICAgICAuLGNjOicuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4nOmNjLC4KICAgICAgICAgIC47Y2NjOy4gICAgICAgICAgICAgICAgICAgICAgICAuO2NjYzsuCiAgICAgICAgICAgIC4sY2NjOiwuICAgICAgICAgICAgICAgICAgLiw6Y2NjLC4KICAgICAgICAgICAgICAgLic6Y2NjOjssJy4uLi4uLi4uJyw7OmNjYzonLgogICAgICAgICAgICAgICAgICAgLicsOjpjbGxsY2NsbGxjOjssJy4KICAgICAgICAgICAgICAgICAgICAgICAgLi4nLCwsLCcuLgo='
[enjoy]='ICAgICAgICAgICAgICAgICAgICAgICAuLicsLDs7LCwnLi4gICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4nLDpjY2NjY2NjY2NjY2NjYzosJy4KICAgICAgICAgICAgICAuLjtjY2M6OycuLi4uLi4uLi4uLi4nOzpjY2M7Li4KICAgICAgICAgICAgLjtjY2MsLi4gICAgICAgICAgICAgICAgICAuLixjY2M7LgogICAgICAgICAgLjpjYzonICAgICAgICAgICAgICAgICAgICAgICAgIC4nOmNjOi4KICAgICAgICAuO2NjOy4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuO2NjOy4KICAgICAgICdjYzouICAgICAgLi4sLDssLCcuLiAgIC4nLCw7LCwnLiAgICAgIC46Y2MnCiAgICAgICdjYzouICAgICAnOjosJy4uLi4sOmM7O2M6LC4uLi4nLDo6Jy4gICAgLjpjYycKICAgICAuY2M6LiAgICAuOjouICAgICAgICAgLjssLiAgICAgICAgIC46Oi4gICAgLjpjYy4KICAgIC46Y2MuICAgIC46Oi4gICAgICAgICAgICAgICAgICAgICAgICAuOmMuICAgIC5jYzouCiAgICAnY2M6ICAgICAsYycgICAgICAgICAgICAgICAgICAgICAgICAgICdjLCAgICAgOmNjJwogICAgLGNjLCAgICAgLGMsICAgICAgICAgICAgICAgICAgICAgICAgICAsYywgICAgICxjYywKICAgIDtjYycgICAgIC47YycgICAgICAgICAgICAgICAgICAgICAgICAuYzouICAgICAnY2M7CiAgICAsY2MsICAgICAgLixjOy4gICAgICAgICAgICAgICAgICAgIC47YywuICAgICAgLGNjLAogICAgLmNjOi4gICAgICAgLjtjOy4gLicnLi4uLi4uLi4nJy4gLjtjOy4gICAgICAgLjpjYy4KICAgICA6Y2MnICAgICAgICAgLixjOy4gICAuLi4uLi4gICAuO2MsLiAgICAgICAgICdjYzoKICAgICAuOmNjLiAgICAgICAgICAuJ2M6JyAgICAgICAgJzpjJy4gICAgICAgICAgLmNjOi4KICAgICAgLmNjYy4gICAgICAgICAgICAnYzonICAgICc6YywuICAgICAgICAgICAnY2NjLgogICAgICAgLjpjYywgICAgICAgICAgICAgJ2M6Jyc6YycuICAgICAgICAgICAgLGNjOi4KICAgICAgICAuLGNjOicuICAgICAgICAgICAgLicnLiAgICAgICAgICAgIC4nOmNjLC4KICAgICAgICAgIC47Y2NjLC4gICAgICAgICAgICAgICAgICAgICAgICAuLGNjYzsuCiAgICAgICAgICAgIC4sOmNjOicuICAgICAgICAgICAgICAgICAgLic6Y2M6LC4KICAgICAgICAgICAgICAgLic6Y2NjOjssJy4uLi4uLi4uJyw7OmNjYzonLgogICAgICAgICAgICAgICAgICAgLicsOzpjY2NjY2NjY2NjOjssJy4KICAgICAgICAgICAgICAgICAgICAgICAgLi4nJywsJycuLgo='
[more]='ICAgICAgICAgICAgICAgICAgICAgIC4uLDpjbGxsY2M6LC4uICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC47Y2R4a2tra2tra2tra2treGRjOy4KICAgICAgICAgICAgICAuO2x4a3hkbDo7LCcuLi4uLi4uLDs6bGRra3hsOy4KICAgICAgICAgICAgLG9reHhsLC4gICAgICAgICAgICAgICAgICAuLGx4eGtvLAogICAgICAgICAgLGRra2Q6LiAgICAgICAgICAgICAgICAgICAgICAgIC47ZGtrZCwKICAgICAgICAub2trbywgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsb2trby4KICAgICAgIDt4a3g7ICAgICAgICAgICAgICAgICAgICAgICAnY29kZGw7LiAgIDt4a2s6CiAgICAgIDpreHgnICAgICAgICAgICAgICAgICAgICAgICBsa2tra2tra3gnICAgJ3h4azoKICAgICAseHh4LiAgICAgICAgICAgICAgICAgICAgICAgLGt4a2tra2tra2wgICAgJ3h4eCwKICAgIC54a2s7ICAgICAgICAgICAgICAgICAgICAgICAgLm9ra2tra2traywgICAgIDpra3guCiAgICA7a2t4LiAgICAgICAgICAgICAgICAgICAgICAgICAgLGxkeHhvOi4gICAgICAueGtrOwogICAgbGtrbCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC4uJzs6bGRsICAgIGxra2MKICAgIGxra2MgICAgLiwsLiAgICAgICAgICAgICAgIC4uJzs6bG94eGRsOjsnLiAgICBja2tsCiAgICBja2tsICAgLnh4eGsuICAgICAgICAuJztjb3hra2RsYzsnLiAgICAgICAgICAgbGtrYwogICAgO2treC4gICAnOjosICAuLiw6bGR4a3hvYzo7Li4gICAgICAgICAgICAgICAgLnh4azsKICAgIC5ka2tjICAgLiw6bG94eGRsOjsnLi4gLmNkeGRjLiAgICAgICAgICAgICAgIDpra2QuCiAgICAgLnh4eDsgIC5jYzsnLiAgICAgICAgIDpra2tra28gICAgICAgICAgICAgICx4eHguCiAgICAgICx4a2s6ICAgICAgICAgICAgICAgLnhra2tra2ssICAgICAgICAgICAgO2treCwKICAgICAgICd4a2tsLiAgICAgICAgICAgICAgLi4uLi4uLiAgICAgICAgICAgLmN4a2QnCiAgICAgICAgLmx4a2Q7LiAgICAgICAgICAgICAgICAgICAgICAgICAgICAuO2RreGwuCiAgICAgICAgICAubGtreGwnICAgICAgICAgICAgICAgICAgICAgICAgJ2x4a2tsLgogICAgICAgICAgICAuY3hra2Q6Jy4gICAgICAgICAgICAgICAgLidjeGt4eGMuCiAgICAgICAgICAgICAgICc6b2treGRsYzo7LCwnJywsOzpjbGRra3hvOicKICAgICAgICAgICAgICAgICAgLic7Y29keGtra2tra2tra2RvYzsnLgogICAgICAgICAgICAgICAgICAgICAgICAuLDs6Y2M6OywuCg=='
[strive]='ICAgICAgICAgICAgICAgICAgICAgICAuJyw7Ozs7OzssJy4gICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4nO2NsbGxsbGxsbGxsbGxsbDo7Jy4KICAgICAgICAgICAgICAuJztsbGxjOywnLi4uLi4uLi4uLicsOmNsbGw7Jy4KICAgICAgICAgICAgJzpsbGw7Li4gICAgICAgICAgICAgICAgICAuLjtsbGw6JwogICAgICAgICAgJ2NsbGMsLiAgICAgICAgICAgICAgICAgICAgICAgIC4sY2xsYycKICAgICAgICAuY2xsOi4gICAgICAgICAgICAgICAuLi4uLi4uICAgICAgICAuOmxsYy4KICAgICAgICxsbGwnICAgICAgICAgICAgIC4nOzosJycuJyc7OjonLiAgICAgICdsbGwsCiAgICAgICxsbGMuICAgICAgICAgICAgICdjLC4gICAuLiAgICAuLGMsICAgICAgLmNsbCwKICAgICAubGxjLiAgICAgICAgICAgICA7Yy4gIC4uLi4uICAgICAgLjo7ICAgICAgLmxsbC4KICAgIC5sbGwnICAgICAgICAgICAgIDtjLiAgLC4gICAgICAgICAgIC5jLCAgICAgICdsbGwuCiAgICAnbGxjICAgICAgICAgICAgIC5sOyAgJy4gICAgICAgICAgICAgO2wgICAgICAgY2xsJwogICAgO2xsOyAgICAgICAgICAgICAgYzogICAgICAgICAgICAgICAgIDo6ICAgICAgIDtsbDsKICAgIDtsbCwgICAgICAgICAgICAgIC5jLCAgICAgICAgICAgICAgICdjLiAgICAgICAsbGw7CiAgICA7bGw7ICAgICAgICAgICAgIC4sOmM6LiAgICAgICAgICAgLjtjLiAgICAgICAgO2xsOwogICAgJ2xsYy4gICAgICAgICAgLiw6JyAgJ2w6Jy4uICAgIC4nOjonICAgICAgICAgLmNsbCcKICAgICBjbGwsICAgICAgICAuOzsuICAgLjo7Li4nLDs7OywsLi4gICAgICAgICAgICxsbGMKICAgICAubGxsJyAgICAgLjs7LiAgICc6LC4gICAgICAgICAgICAgICAgICAgICAgJ2xsbC4KICAgICAgJ2xsbCcgICAgYzsgICAnOiwuICAgICAgICAgICAgICAgICAgICAgICAnbGxsJwogICAgICAgLmNsbDsgICAnYywsOiwuICAgICAgICAgICAgICAgICAgICAgICAuO2xsYy4KICAgICAgICAuO2xsYycuICAuLiAgICAgICAgICAgICAgICAgICAgICAgIC4sY2xsOy4KICAgICAgICAgIC46bGxsOy4gICAgICAgICAgICAgICAgICAgICAgICAuOmxsbDouCiAgICAgICAgICAgIC47bGxsYywuLiAgICAgICAgICAgICAgICAuLixjbGxsOy4KICAgICAgICAgICAgICAgLixjbGxsYzo7LCcuLi4uLi4nLDs6Y2xsbGMsLgogICAgICAgICAgICAgICAgICAgLic7OmNsbGxsbGxsbGxsYzo7Jy4KICAgICAgICAgICAgICAgICAgICAgICAgLi4sLDs7LCwuLgo='
[team]='ICAgICAgICAgICAgICAgICAgICAgICAuLi4uLi4uLi4uLi4gICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4uLicsLCwsLCwsLCwsLCwsLCcuLi4KICAgICAgICAgICAgICAgLi4sLCwnLi4uLi4gICAgICAuLi4uLicsLCwuLgogICAgICAgICAgICAuJywsLC4uICAgICAgICAgICAgICAgICAgICAuLiwsLCcuCiAgICAgICAgICAuJywsJy4gICAgICAgICAgICAgICAgICAgICAgICAgIC4nLCwnLgogICAgICAgIC4nLCwuLiAgICAgICAgICAgLi4uLi4uLi4gICAgICAgICAgIC4nLCwnLgogICAgICAgLiwsJy4gICAgICAgLi4gIC4nLi4gICAgLi4nLiAgLi4gICAgICAgLicsLC4KICAgICAgLiwsLC4gICAgICAuLCwuICcnICAgICAgICAgIC4nLi4sLC4gICAgICAuLCwsLgogICAgIC4sLCcuICAgICAgLiwsLiAuJyAgICAgICAgICAgICcuIC4sLCcgICAgICAuJywsLgogICAgICcsLC4gICAgICAgJywsLi4nLiAgICAgICAgICAgIC4nLi4sLCwuICAgICAgLiwsJwogICAgLiwsJyAgICAgICAuLCwsLi4sLiAgICAgICAgICAgICAnLi4sLCwnICAgICAgICcsLC4KICAgIC4sLC4gICAgICAgLiwsLC4gJy4gICAgICAgICAgICAuLC4uLCwsJyAgICAgICAuLCwuCiAgICAuLCwuICAgICAgICAuLCwuIC4nICAgICAgICAgICAgLi4gLiwsLC4gICAgICAgLiwsLgogICAgLiwsLiAgICAgICAgICcsLC4gJy4gICAgICAgICAgLicuLiwsLC4gICAgICAgIC4sLC4KICAgIC4sLCcgICAgICAgICAuLCwsLiAuJyAgICAgICAgLi4gLiwsLC4gICAgICAgICAnLCwuCiAgICAgJywsLiAgICAuLi4nLi4uLi4uLicuLi4uLi4uLicuLi4uLi4uJycuLi4gICAuLCwnCiAgICAgICcsJy4gLiwsJy4uLi4uLi4gICAgICAgICAgICAgIC4uLi4uLi4nLCwsLi4nLCcKICAgICAgLiwsLC4gIC4gICcnLi4uLi4uLi4uLi4uLi4uLi4uLi4uLicsICAgICAuLCwsLgogICAgICAgLicsLC4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLiwsJy4KICAgICAgICAgLiwsJy4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuJywsLgogICAgICAgICAgIC4sLCwuLiAgICAgICAgICAgICAgICAgICAgICAgIC4uLCwsLgogICAgICAgICAgICAgLicsLCcuLiAgICAgICAgICAgICAgICAgIC4uJywsJy4KICAgICAgICAgICAgICAgLi4nLCwsJy4uLi4uLi4uLi4uLi4uJywsLCcuLgogICAgICAgICAgICAgICAgICAgLi4uJycsLCwsLCwsLCwsJycuLi4KICAgICAgICAgICAgICAgICAgICAgICAgIC4uLi4uLi4uCg=='
[think]='ICAgICAgICAgICAgICAgICAgICAgIC4uJyw7Ozo6OywsJy4uICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4nO2NsbGxsbGxsbGxsbGxsbGM7Jy4gICAgICAgICAgICAgIAogICAgICAgICAgICAgIC4nO2xsbGM7LCcuLi4uLi4uLi4uJyw7Y2xsbDsnLiAgICAgICAgICAKICAgICAgICAgICAgJzpsbGw7Li4gICAgICAgICAgICAgICAgICAuLjtjbGw6JyAgICAgICAgCiAgICAgICAgICAnY2xsYycuICAgICAgICAgICAgICAgICAgICAgICAgLidjbGxjJyAgICAgIAogICAgICAgIC46bGw6LiAgICAgICAgICAuLiwsOzssLC4uICAgICAgICAgIC46bGw6LiAgICAKICAgICAgICxsbGMnICAgICAgICAgLixjOycuLi4gLi4nOmMsLiAgICAgICAgICdjbGwsICAgCiAgICAgICxsbGMuICAgICAgICAgJ2M7LiAgLi4uICAgICAuO2wnICAgICAgICAgLmNsbCwgIAogICAgICdsbGwuICAgICAgICAgLGwuICAuLC4uICAgICAgICAnbCwgICAgICAgICAubGxsJyAKICAgIC5sbGwnICAgICAgICAgIGM6ICAuOyAgICAgICAgICAgIDpjICAgICAgICAgICdsbGwuCiAgICAnbGxjICAgICAgICAgIC5jOyAgLiAgICAgICAgICAgICA7Yy4gICAgICAgICAgY2xsJwogICAgO2xsOyAgICAgICAgICAgO2wuICAgICAgICAgICAgICAubCwgICAgICAgICAgIDtsbDsKICAgIDtsbCwgICAgICAgICAgICA7Yy4gICAgICAgICAgICAuYzsgICAgICAgICAgICAsbGw7CiAgICA7bGw7ICAgICAgICAgICAgICxsJyAgICAgICAgICAnbCwgICAgICAgICAgICAgO2xsOwogICAgJ2xsbC4gICAgICAgICAgICAgJ2wsLi4uLi4uLi4sbCcgICAgICAgICAgICAgLmxsbCcKICAgICBjbGwsICAgICAgICAgICAgICAnbDonJycnJyw6bCwgICAgICAgICAgICAgICxsbGMgCiAgICAgLmxsbCcgICAgICAgICAgICAgIDpjJy4uLi4sbDogICAgICAgICAgICAgICdsbGwuIAogICAgICAnbGxsJyAgICAgICAgICAgICAubDouLi4uOmwuICAgICAgICAgICAgICdsbGwnICAKICAgICAgIC5jbGw7LiAgICAgICAgICAgICdsOicuO2wnICAgICAgICAgICAgLjtsbGwuICAgCiAgICAgICAgLjtsbGMnLiAgICAgICAgICAgLi4sLC4uICAgICAgICAgICAuJ2NsbDsuICAgIAogICAgICAgICAgLjpsbGw7LiAgICAgICAgICAgICAgICAgICAgICAgIC47bGxsOi4gICAgICAKICAgICAgICAgICAgLixjbGxjLC4uICAgICAgICAgICAgICAgIC4uLGNsbGMsLiAgICAgICAgCiAgICAgICAgICAgICAgIC4sOmxsbGM6OywnLi4uLi4uJyw7OmNsbGw6LC4gICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgLic7OmNsbGxsbGxsbGxsYzo7Jy4gICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgLi4nLDs7LCcuLiAgICAgICAgICAgICAgICAgICAgCg=='
[wow]='ICAgICAgICAgICAgICAgICAgICAgIC4uLDs6OmNjOjo7LC4uICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgIC4sOmxvZGRkZGRkZGRkZGRkb2w6LC4KICAgICAgICAgICAgICAuLGNkZGRsYzssJy4uLi4uLi4uJyw7Y29kZG9jLC4KICAgICAgICAgICAgJ2xkZGRjJy4gICAgICAgICAgICAgICAgICAuJ2NkZGRsJwogICAgICAgICAgJ29kZG8sLiAgICAgICAgICAgICAgICAgICAgICAgIC4sb2RkbycKICAgICAgICAubGRkbCcgICAgICAgICAgICAgLicnLiAgICAgICAgICAgICAnbGRkbC4KICAgICAgIDtkZG8sICAgICAgICAgICAgICAub2Nsby4gICAgICAgICAgICAgICxvZGQ7CiAgICAgIDtkZG8uICAgICAgICAgICAgICAub2wgLmxvLiAgICAgICAgICAgICAgLm9kZDsKICAgICAnZG9vLiAgICAgICAgICAgICAgLm9vLiAgLm9vLiAgICAgICAgICAgICAgLm9vZCcKICAgIC5vZGQsICAgICAgICAuLi4uJyc7ZGwuICAgIC5sZDsnJy4uLi4gICAgICAgICxkZG8uCiAgICAsZGRvLiAgICAgJ29vbGM6OywnJy4gICAgICAgIC4nJyw7OmNsb28nICAgICAub2RkLAogICAgOmRkOiAgICAgICdvby4gICAgICAgICAgICAgICAgICAgICAgLm9vJyAgICAgIDpkZDoKICAgIGNkZDsgICAgICAgICdsbCcgICAgICAgICAgICAgICAgICAnbGwnICAgICAgICA7ZGRjCiAgICA6ZGRjICAgICAgICAgICdsZCwgICAgICAgICAgICAgIDtkbCcgICAgICAgICAgY2RkOgogICAgLGRkZC4gICAgICAgICAgIGNkJyAgICAgICAgICAgICdkYyAgICAgICAgICAgLmRkZCwKICAgIC5vZGQ7ICAgICAgICAgIC5vby4gICAgICAgICAgICAub28gICAgICAgICAgIDtkZG8KICAgICAub2RkLCAgICAgICAgICdkOiAgICAgLjs7LiAgICAgOmQnICAgICAgICAgLGRvby4KICAgICAgJ2RkZCwgICAgICAgIDtkJyAuLGNvYywsY29jLC4gLGQ7ICAgICAgICAsZGRkJwogICAgICAgJ29kZDouICAgICAgOmRsb287Jy4gICAgLic6b29sZDogICAgICAuOmRkbycKICAgICAgICAuOm9kbywuICAgICAuLi4gICAgICAgICAgICAuLi4gICAgIC4sb2RvOi4KICAgICAgICAgIC5jZGRkOi4gICAgICAgICAgICAgICAgICAgICAgICAuOm9kZGMuCiAgICAgICAgICAgIC46b2RkbDsuLiAgICAgICAgICAgICAgICAuLjtsZGRvOi4KICAgICAgICAgICAgICAgLjtsZGRkb2M6OywnJy4uJycsOzpjb2RkZGw7LgogICAgICAgICAgICAgICAgICAuLiw6Y2xkZGRkZGRkZGRkbGM6LC4uCiAgICAgICAgICAgICAgICAgICAgICAgIC4nLDs6OjssJy4K'
);
function print_core_value() {
echo " ===> ${core_value_names[$1]} <===" | awk '{print toupper($0)}'
echo && [[ -t 1 ]] && echo -e "${core_value_colors[$1]}"
echo "${core_value_ascii[$1]})" | base64 -d 2> /dev/null
echo && [[ -t 1 ]] && echo -e "\e[39m"
echo "${core_value_descs[$1]}"
echo
}
function print_random_core_value() {
local core_value
let "core_value = $RANDOM % ${#core_value_keys[@]}"
core_value=${core_value_keys[$core_value]}
print_core_value $core_value
}
case $1 in
login)
echo -e "Welcome, $USER!\nHere is the core value of the day:"
echo
print_random_core_value
;;
become|enjoy|more|strive|think|team|wow)
print_core_value $1
;;
*)
print_random_core_value
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.