1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Merge pull request #98 from a7r3/master

gogh: some more improvements 👍
This commit is contained in:
Mayccoll 2017-10-11 10:03:17 -05:00 committed by GitHub
commit 2a3b322c8c

13
gogh.sh
View File

@ -179,17 +179,14 @@ NUM=1
# | ::::::: Print Colors # | ::::::: Print Colors
# | # |
echo -e " echo -e "
Gogh Gogh\n
\e[0;30m█████\\e[0m\e[0;31m█████\\e[0m\e[0;32m█████\\e[0m\e[0;33m█████\\e[0m\e[0;34m█████\\e[0m\e[0;35m█████\\e[0m\e[0;36m█████\\e[0m\e[0;37m█████\\e[0m \e[0;30m█████\\e[0m\e[0;31m█████\\e[0m\e[0;32m█████\\e[0m\e[0;33m█████\\e[0m\e[0;34m█████\\e[0m\e[0;35m█████\\e[0m\e[0;36m█████\\e[0m\e[0;37m█████\\e[0m
\e[0m\e[1;30m█████\\e[0m\e[1;31m█████\\e[0m\e[1;32m█████\\e[0m\e[1;33m█████\\e[0m\e[1;34m█████\\e[0m\e[1;35m█████\\e[0m\e[1;36m█████\\e[0m\e[1;37m█████\\e[0m" \e[0m\e[1;30m█████\\e[0m\e[1;31m█████\\e[0m\e[1;32m█████\\e[0m\e[1;33m█████\\e[0m\e[1;34m█████\\e[0m\e[1;35m█████\\e[0m\e[1;36m█████\\e[0m\e[1;37m█████\\e[0m"
# | # |
# | ::::::: Print Themes # | ::::::: Print Themes
# | # |
echo -e " echo -e "\nThemes:\n"
Themes:
(\\e[0m\e[0;34m 00 \\e[0m\e[0m) EXIT
"
for TH in "${THEMES[@]}"; do for TH in "${THEMES[@]}"; do
@ -206,8 +203,8 @@ done
# | # |
# | ::::::: Select Option # | ::::::: Select Option
# | # |
echo -e "Usage : Enter Desired Themes Numbers (\\e[0m\e[0;34mOPTIONS\\e[0m\e[0m) Separated By A Blank Space" echo -e "\nUsage : Enter Desired Themes Numbers (\\e[0m\e[0;34mOPTIONS\\e[0m\e[0m) Separated By A Blank Space"
echo -e " Press \e[0;34mENTER\\e[0m without options to Exit\n"
read -p 'Enter OPTION(S) : ' -a OPTION read -p 'Enter OPTION(S) : ' -a OPTION
@ -216,7 +213,7 @@ read -p 'Enter OPTION(S) : ' -a OPTION
# | # |
for OP in "${OPTION[@]}"; do for OP in "${OPTION[@]}"; do
if [[ OP -le ARRAYLENGTH ]]; then if [[ OP -le ARRAYLENGTH && OP -gt 0 ]]; then
FILENAME="${THEMES[((OP-1))]::-3}" FILENAME="${THEMES[((OP-1))]::-3}"
FILENAME_SPACE="${FILENAME//-/ }" FILENAME_SPACE="${FILENAME//-/ }"
echo "Theme: ${FILENAME_SPACE^}" echo "Theme: ${FILENAME_SPACE^}"