You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
428 B

#!/bin/zsh
# absolute path to image folder
FOLDER="$PWD"
PH="${${PWD%/public_html*}%/wiki*}"
FILE="https://${PH##*/}.local.jh"
# get current open browser command
case $( uname -s ) in
Darwin) open=open;;
MINGW*) open=start;;
CYGWIN*) open=cygstart;;
MSYS*) open="powershell.exe –NoProfile Start";;
*) open=${BROWSER:-xdg-open};;
esac
# open it in a browser
$open "$FILE" &> /dev/null & disown
exit $?