We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ca1990 + 96c80ff commit 301c5a6Copy full SHA for 301c5a6
git-open
@@ -235,21 +235,16 @@ case $( uname -s ) in
235
CYGWIN*) open='cygstart';;
236
*) # Try to detect WSL (Windows Subsystem for Linux)
237
if uname -r | grep -q Microsoft; then
238
- open='powershell.exe'
239
- openopt='Start'
+ open='powershell.exe Start'
240
else
241
open='xdg-open'
242
fi;;
243
esac
244
245
# Allow printing the url if BROWSER=echo
246
-if [[ $BROWSER == "echo" ]]; then
247
- openopt=''
248
-else
+if [[ $BROWSER != "echo" ]]; then
249
exec &>/dev/null
250
fi
251
252
# open it in a browser
253
-${BROWSER:-$open} $openopt "$openurl"
254
-
255
-unset openopt
+${BROWSER:-$open} "$openurl"
0 commit comments