#!/bin/env sh
+mkdir ~/.cache/charsel/
+chmod +x charsel
+
if [ `whoami` == root ]; then
mkdir -p /usr/share/charsel
cp charfiles/* /usr/share/charsel/
- chmod +x charsel
cp charsel /usr/bin/
exit
else
mkdir -p ~/.local/share/charsel
cp charfiles/* ~/.local/share/charsel/
- chmod +x charsel
cp charsel ~/.local/bin/
exit
fi
#!/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 :