#!/usr/bin/env sh
# Merge both global and local charfiles
-mkdir ~/.cache/charsel/ &
cp /usr/share/charsel/* ~/.cache/charsel/
cp ~/.local/share/charsel/* ~/.cache/charsel/
CHARDIR=~/.cache/charsel
-# clear screen
+# Check if user provided a charfile
+[ -z "$1" ] && echo "No argument supplied" && exit 1
+
+# Clear screen
clear
while :