wx/src/base.sh

32 lines
563 B
Bash
Raw Normal View History

2024-04-26 01:32:38 +00:00
#!/bin/bash
if [ ! "$BASH_VERSION" ] ; then
bash $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
exit 1
fi
2024-04-27 20:32:06 +00:00
wxRed=$(tput setaf 196)
wxGreen=$(tput setaf 46)
wxYellow=$(tput setaf 226)
wxBlue=$(tput setaf 21)
wxPurple=$(tput setaf 165)
wxTurquoise=$(tput setaf 14)
wxPink=$(tput setaf 198)
wxOrange=$(tput setaf 202)
wxUnderline=$(tput smul)
wxItalic=$(tput sitm)
wxBold=$(tput bold)
wxNormal=$(tput sgr0)
2024-04-27 17:08:15 +00:00
{{ FUNCTIONS }}
2024-04-26 03:25:59 +00:00
{{ COMMANDS }}
2024-04-27 17:08:15 +00:00
wx-start
if [[ ! -z $1 ]] && [[ $(type -t wx-$1) == function ]]
2024-04-26 03:20:28 +00:00
then
2024-04-27 17:08:15 +00:00
wx-$1 $2 $3 $4 $5 $6 $7 $8 $9
else
wx-welcome
2024-04-26 01:32:38 +00:00
fi
2024-04-27 17:08:15 +00:00
wx-stop