This commit is contained in:
Dylan Araps 2020-08-05 08:15:59 +03:00
parent 0e0759c480
commit 2355810262
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 6 additions and 3 deletions

9
shfm
View File

@ -224,21 +224,24 @@ main() {
set -e
case $1 in
-h)
-h|--help)
printf 'shfm -[hv]\n'
exit 0
;;
-v)
-v|--version)
printf 'shfm 0.3\n'
exit 0
;;
*)
cd -- "${1:-"$PWD"}"
;;
esac
esc_c=$(printf '\033')
bs_char=$(printf '\177')
cd "${1:-"$PWD"}"
set -- *
cur=$1