mirror of https://github.com/dylanaraps/shfm.git
more
This commit is contained in:
parent
0e0759c480
commit
2355810262
9
shfm
9
shfm
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue