Moves binaries for use with gnu stow
This commit is contained in:
parent
f528ba793c
commit
4fd9f4809b
89 changed files with 0 additions and 0 deletions
21
bin/.bin/open-local
Executable file
21
bin/.bin/open-local
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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 $?
|
Loading…
Add table
Add a link
Reference in a new issue