Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ltj/gitgo
A small plugin for oh-my-zsh to launch Github/Gitlab repository from the command line
https://github.com/ltj/gitgo
Last synced: about 1 month ago
JSON representation
A small plugin for oh-my-zsh to launch Github/Gitlab repository from the command line
- Host: GitHub
- URL: https://github.com/ltj/gitgo
- Owner: ltj
- Created: 2018-07-26T07:10:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T08:38:42.000Z (almost 5 years ago)
- Last Synced: 2024-04-13T11:48:29.926Z (about 1 month ago)
- Language: Shell
- Size: 4.88 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - gitgo - Open a GitHub/GitLab repository in your browser from the command line (macOS only). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - gitgo - Open a GitHub/GitLab repository in your browser from the command line (macOS only). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - gitgo - Open a GitHub/GitLab repository in your browser from the command line (macOS only). (Plugins / ZSH on Windows)
- awesome-zsh-plugins - gitgo - Open a Github/Gitlab repository in your browser from the command line (macOS only). (Plugins / Zinit (née zplugin))
- awesome-zsh-plugins - gitgo (ltj) - Open a Github/Gitlab repository in your browser from the command line (macOS only). (Plugins / ZSH on Windows)
README
# gitgo
A small plugin for oh-my-zsh to launch Github/Gitlab repository from the command line. It will open the URLs using you default browser using the MacOS X `open` command or the common Linux `xdg-open` command. Hence, only Mac OS and Linux is currently suported.## Disclaimer
This little script was coded at my leisure only to bring some convenience to my daily workflow. It comes with absolutely no guarantees.# Installation
* Cd into to the oh-my-zsh custom plugin directory. Usually `~/.oh-my-zsh/custom/plugins`.
* Clone this repository: `git clone https://github.com/ltj/gitgo.git`
* Edit your `.zshrc`file and add `gitgo` to the `plugins` section.
* Restart you terminal or run `source .zshrc`# Usage
Gitgo adds a bunch of aliases to the shell for quick access to the origin repo on Github/Gitlab:
1. `ghg` - Go to the repo homepage
2. `ghc` - The branch compare page
3. `ghp` - Create PR from current branch in shell (very useful if you just pushed this branch)# Contribute
Feel free to submit a PR if you want to extend this. Chances are high that you are a better bash/zsh programmer than me ;)