+# (C) Copyright Armaan Bhojwani, 2020
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+########################################################################
+
+VERSION=2.0.1
+
+# Define argument functions
+function usage() {
+ echo "Usage: /usr/bin/charsel [OPTION]... [CHARFILE]...
+A simple terminal character selector
+ -h show this message
+ -l show installed charfiles
+ -d show readme
+ -v print version
+ -c check charfile validity
+ --all include hidden shortcodes
+
+Exit status:
+ 0 okay,
+ 1 charfile does not exist,
+ 2 charfile syntax error,
+ 3 usage error/invalid option,
+ 4 other error"
+}
+
+CHARDIR=$HOME/.cache/charsel
+function list() {
+ echo "The following charfiles are installed:"
+ ls $CHARDIR/charfiles
+}
+
+function readme() {
+ cat /usr/share/doc/charsel/README.md
+}
+
+function missing_charfile() {
+ echo "The selected charfile is missing or invalid"
+ list
+ exit 1
+}
+
+# Merge global and local charfiles
+if [[ -d $CHARDIR ]]