Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AndrewHaluza/zsh-web-open
custom oh-my-zsh plugin
https://github.com/AndrewHaluza/zsh-web-open
Last synced: about 2 months ago
JSON representation
custom oh-my-zsh plugin
- Host: GitHub
- URL: https://github.com/AndrewHaluza/zsh-web-open
- Owner: AndrewHaluza
- License: apache-2.0
- Created: 2021-01-17T07:42:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-01-20T20:39:36.000Z (over 3 years ago)
- Last Synced: 2024-01-25T17:37:39.530Z (4 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-zsh-plugins - web-open - Adds alias to open web pages. Only works with Ubuntu 20. (Completions / ZSH on Windows)
- fucking-awesome-zsh-plugins - web-open - Adds alias to open web pages. Only works with Ubuntu 20. (Completions / ZSH on Windows)
- awesome-zsh-plugins - web-open - Adds alias to open web pages. Only works with Ubuntu 20. (Completions / ZSH on Windows)
README
# 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:
```zsh
plugins=( ... web-open)
```
## Usage
You can use the `web-open` plugin in form:- `wo `
- `lo `For example, these two are equivalent:
```zsh
$ 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:
| Command | Value | Result |
| ------- | ------- | ------- |
| `wo` | `0` | `https` |
| `wo` | `1` | `http` |
| `wo` | *empty* | `https` |
| `wo` | *any* | `http` |
| `lo` | `1` | `https` |
| `lo` | *empty* | `http` |
| `lo` | *any* | `http` |Examples:
- `wo duckduckgo.com` -> https://duckduckgo.com
- `wo not-secured.com 1` -> http://not-secured.com
- `lo 4378` -> http://localhost:4378
- `lo 4668 dachboard/ 1` -> https://localhost:4668/dashboard/## Dependencies
Fully compatible with ubuntu 20.04