Home

Awesome

zsh-web-open

custom oh-my-zsh plugin This plugin adds aliases for opening web pages.

installation

  1. Clone repo: rm -f ~/.oh-my-zsh/custom/plugins/web-open && git clone https://github.com/AndrewHaluza/zsh-web-open.git ~/.oh-my-zsh/custom/plugins/web-open/
  2. Open your ~/.zshrc file and enable the web-open plugin:
plugins=( ... web-open)

Usage

You can use the web-open plugin in form:

For example, these two are equivalent:

$ wo localhost 1                                # http://localhost
$ wo duckduckgo.com?q='how-to-download-ram?'    # https://duckduckgo.com?q='hot-to-download-ram?
$ lo 5432                                       # http://localhost:5432
$ lo 5454 blog/article-page-1/                  # http://localhost:5454/blog/article-page-1/
$ lo 4321 1                                     # https://localhost:4321

Available protocol values:

CommandValueResult
wo0https
wo1http
woemptyhttps
woanyhttp
lo1https
loemptyhttp
loanyhttp

Examples:

Dependencies

Fully compatible with ubuntu 20.04