Refactor xinit to be more structured and set $EDITOR if unset to vis

This commit is contained in:
Miles Alan 2020-07-17 22:02:24 -05:00
parent d2ee25d724
commit 5c4c6c15e2
3 changed files with 60 additions and 36 deletions

View file

@ -1,5 +1,4 @@
#!/usr/bin/env sh
EDITOR=vis
DIR="$1"
[ -z "$DIR" ] && DIR="/home/$USER/"
cd "$DIR" || exit 1