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 set -e
case $1 in case $1 in
-h) -h|--help)
printf 'shfm -[hv]\n' printf 'shfm -[hv]\n'
exit 0 exit 0
;; ;;
-v) -v|--version)
printf 'shfm 0.3\n' printf 'shfm 0.3\n'
exit 0 exit 0
;; ;;
*)
cd -- "${1:-"$PWD"}"
;;
esac esac
esc_c=$(printf '\033') esc_c=$(printf '\033')
bs_char=$(printf '\177') bs_char=$(printf '\177')
cd "${1:-"$PWD"}"
set -- * set -- *
cur=$1 cur=$1