Skip to content

Commit c62149d

Browse files
committed
fix: direct script usage
1 parent 5e49e1d commit c62149d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

git-open.zsh

+3-6
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,9 @@ git_open() {
298298
esac
299299
}
300300

301-
case $1 in
302-
open)
303-
shift
304-
git_open $@
305-
;;
306-
esac
301+
[[ "$1" != "open" ]] || shift
302+
303+
git_open $@
307304

308305
if [[ -z "$__UNLOAD_PATH" ]]; then
309306
__UNLOAD_PATH="${0:A:h}/unload.zsh"

0 commit comments

Comments
 (0)