Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenBrowser ¶
OpenBrowser opens url using HNCLI_OPEN if set, otherwise the system browser.
HNCLI_OPEN is treated as a sh -c command. Use {} as a placeholder for the URL; if absent the URL is appended as the last argument. Examples:
HNCLI_OPEN="xdg-open" # explicit browser (default)
HNCLI_OPEN="echo {} | xclip -selection clipboard" # Linux clipboard
HNCLI_OPEN="echo {} | wl-copy" # Wayland clipboard
HNCLI_OPEN="echo {} | pbcopy" # macOS clipboard
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.