commit 4ea6849edc61a320978cb751a2466fe5508e1a21
parent 53530908dc417a1471dc41a05038f25c83e2b0fd
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 2 Oct 2020 22:27:27 +0200
open: allow gj options
Former-commit-id: 7b71b785a8bc6ca08e31a92b61dd5bb1ee87df6d
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/open b/scripts/open
@@ -1,9 +1,8 @@
#!/bin/sh
-set -x
PARAMS=""
while [ $(($#)) -ne 0 ]; do
case "$1" in
- -g|--background)
+ -g|-j|-gj)
background=1
shift
;;
@@ -36,7 +35,7 @@ case $os in
command xdg-open "$@"
;;
darwin*)
- if [ $background -eq 1 ]; then /usr/bin/open -g "$@"
+ if [ $background -eq 1 ]; then /usr/bin/open -gj "$@"
else /usr/bin/open "$@"
fi
;;