|
|
@ -10,18 +10,15 @@ COMMAND_ARGS=$2
|
|
|
|
esc=""
|
|
|
|
esc=""
|
|
|
|
reset="${esc}[0m"
|
|
|
|
reset="${esc}[0m"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ----- print kitty ----- #
|
|
|
|
# ----- print kitty ----- #
|
|
|
|
|
|
|
|
|
|
|
|
sub_print () {
|
|
|
|
sub_print() {
|
|
|
|
|
|
|
|
|
|
|
|
local CATLINE1=" /| 、 "
|
|
|
|
local CATLINE1=" /| 、 "
|
|
|
|
local CATLINE2="(°、 。 7 "
|
|
|
|
local CATLINE2="(°、 。 7 "
|
|
|
|
local CATLINE3=" |、 ~ヽ "
|
|
|
|
local CATLINE3=" |、 ~ヽ "
|
|
|
|
local CATLINE4=" じしf_,)〳 "
|
|
|
|
local CATLINE4=" じしf_,)〳 "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $COMMAND_ARGS in
|
|
|
|
case $COMMAND_ARGS in
|
|
|
|
|
|
|
|
|
|
|
|
# print coloured version based on input
|
|
|
|
# print coloured version based on input
|
|
|
@ -59,11 +56,9 @@ sub_print () {
|
|
|
|
echo "${reset}"
|
|
|
|
echo "${reset}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ----- print help ----- #
|
|
|
|
# ----- print help ----- #
|
|
|
|
|
|
|
|
|
|
|
|
sub_help () {
|
|
|
|
sub_help() {
|
|
|
|
|
|
|
|
|
|
|
|
echo "Usage: $BIN_NAME <command>"
|
|
|
|
echo "Usage: $BIN_NAME <command>"
|
|
|
|
echo
|
|
|
|
echo
|
|
|
@ -77,35 +72,31 @@ sub_help () {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ----- link source ----- #
|
|
|
|
# ----- link source ----- #
|
|
|
|
|
|
|
|
|
|
|
|
sub_source () {
|
|
|
|
sub_source() {
|
|
|
|
|
|
|
|
|
|
|
|
echo "Catpuccin: https://github.com/catppuccin/catppuccin"
|
|
|
|
echo "Catpuccin: https://github.com/catppuccin/catppuccin"
|
|
|
|
echo "This Script: https://github.com/catppuccin/catppuccin/blob/main/resources/meow"
|
|
|
|
echo "This Script: https://github.com/catppuccin/catppuccin/blob/main/resources/meow"
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ----- command handler ----- #
|
|
|
|
# ----- command handler ----- #
|
|
|
|
|
|
|
|
|
|
|
|
case $COMMAND_NAME in
|
|
|
|
case $COMMAND_NAME in
|
|
|
|
|
|
|
|
|
|
|
|
# print kitty by default
|
|
|
|
# print kitty by default
|
|
|
|
"")
|
|
|
|
"")
|
|
|
|
sub_print
|
|
|
|
sub_print
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
# make help available via flags
|
|
|
|
# make help available via flags
|
|
|
|
"-h" | "--help")
|
|
|
|
"-h" | "--help")
|
|
|
|
sub_help
|
|
|
|
sub_help
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
# parse whatever command
|
|
|
|
# parse whatever command
|
|
|
|
*)
|
|
|
|
*)
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
sub_${COMMAND_NAME} $@
|
|
|
|
sub_${COMMAND_NAME} $@
|
|
|
|
if [ $? = 127 ]; then
|
|
|
|
if [ $? = 127 ]; then
|
|
|
|