added colors

This commit is contained in:
Alexander Popov 2024-03-31 16:58:59 +03:00
parent 582aedfd2e
commit f17fa75dfb
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
2 changed files with 10 additions and 3 deletions

1
vanilla/colors.sh Symbolic link
View File

@ -0,0 +1 @@
../deps/colors.sh/colors.sh

View File

@ -1,16 +1,22 @@
#!/bin/sh
# include colors library
source ./colors.sh
# Setting terminal emulator title
echo -ne "\033]30;Minecraft Launcher\007"
clear
# Launcher title
echo "Minecraft Launcher by iiiypuk"
echo "============================="
echo -e "${BRIGHT_GREEN_B}Minecraft Launcher by ${BRIGHT_RED_B}iiiypuk${NC}"
echo -e "${BRIGHT_YELLOW_B}=============================${NC}"
# Set username
read -p "What username would you like? " player
read -p "$(echo -e ${BRIGHT_CYAN_B}What username would you like?${NC}) " player
if [ ! $player ]; then
player="Steve"
fi
echo ''
# A minecraft root directory
MC_DIR=$HOME/.minecraft