https://github.com/md-command-line/gh_reveal
Do not open browsers; let terminal show (default all) or (specific) remote in browser. From your current git project.
https://github.com/md-command-line/gh_reveal
bash git github gitlab remote
Last synced: 7 months ago
JSON representation
Do not open browsers; let terminal show (default all) or (specific) remote in browser. From your current git project.
- Host: GitHub
- URL: https://github.com/md-command-line/gh_reveal
- Owner: md-command-line
- Created: 2018-02-16T13:16:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-22T18:57:44.000Z (over 1 year ago)
- Last Synced: 2024-12-30T12:12:27.144Z (about 1 year ago)
- Topics: bash, git, github, gitlab, remote
- Language: Shell
- Homepage:
- Size: 54.7 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reveal_brew
[](#contributors)
in terminal, quickly open the git project in default browser.
## Install with Homebrew (macintosh computers):
```
brew tap md-command-line/taps &&
brew install reveal;
```
### To see additional taps checkout:
- https://github.com/md-command-line/homebrew-taps
- https://github.com/MenkeTechnologies/homebrew-taps
## Implementation
`reveal`
want to reveal all of your projects in a given directory?
`for d in ./*/ ; do (cd "$d" && echo "$d" && reveal); done`
or as with my environment maybe all of your projects are in a folder that is subdivided by category folders.
`for d in ./*/ ; do (cd "$d" && echo "$d" && for p in ./*/ ; do (cd "$p" && echo "$p" && reveal); done); done`

## Additional Examples
Reveal takes a single command line argument.
This argument is the remote you would like to open for the current directory git project.
If no remote is specified it will reveal all remotes on the project in the browser.
For most users this is just the one remote either gitlab or github (origin).
1) `reveal origin`
2) `reveal gitlab`
3) `reveal `
Not sure what remote means? (context .git)
cd into your git project and type `git remote -v`
## How does it work?
through the use of command:
```
git remote -v
```
gather's all remotes for project
and proceeds to filter the output into url's
piping each as a unique url opens all the stuff.
## Install for Zinit
> `~/.zshrc`
```sh
source "$HOME/.zinit/bin/zinit.zsh"
zinit ice lucid nocompile
zinit load md-command-line/gh_reveal
```
## Install as oh-my-zsh plugin
```bash
git clone https://github.com/md-command-line/gh_reveal.git ~/.oh-my-zsh/custom/plugins/gh_reveal
```
add gh_reveal to plugins array in `~/.zshrc` like so
`plugins=(gh_reveal git zsh-more-completions)`
## Alternative install/uninstall experience:
Clone and cd into the project:
```bash
git clone https://github.com/md-command-line/gh_reveal.git && cd gh_reveal;
```
install
```bash
./install.sh;
```
uninstall
```bash
./uninstall.sh
```
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

MichaelDimmitt
🚇 📖 💻

Jacob Menke
🚇 💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!