https://github.com/zdharma-continuum/zbrowse
https://github.com/zdharma-continuum/zbrowse
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zdharma-continuum/zbrowse
- Owner: zdharma-continuum
- License: other
- Created: 2021-11-04T07:39:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T05:17:33.000Z (about 2 years ago)
- Last Synced: 2025-03-24T02:21:59.444Z (3 months ago)
- Language: Shell
- Size: 192 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZBrowse
[![Gitter][gitter-image]][gitter-link]
When doing shell work, `echo $variable` is often invoked multiple times to check the result of a loop.
With Zbrowse, you need to press `Ctrl-B`, which invokes the `ZBrowse` – `Zshell` variable browser:
[](https://asciinema.org/a/122018)
## Install
First, install [ZUI](https://github.com/zdharma-continuum/zui) plugin (it's a UI library).
**The plugin is "standalone"**, meaning only sourcing it is needed. So to install, unpack `zbrowse` somewhere
and add the following snippet to your `zshrc`.```zsh
source /zbrowse.plugin.zsh
```If using a plugin manager, then `zinit` is recommended, but you can use any other too, and also install with `Oh My Zsh`
(by copying directory to `~/.oh-my-zsh/custom/plugins`).### [zinit](https://github.com/zdharma-continuum/zinit)
Add `zinit load zdharma-continuum/zbrowse` to your `.zshrc` file. Zinit will automatically handle cloning the plugin for you
the next time you start zsh. To update, run `zinit update zdharma-continuum/zbrowse`.To remap the default key binding `Ctrl+B`, which conflicts with GNU readline, use the following snippet:
```zsh
zinit ice \
bindmap"^B -> ^H" \
lucid \
trackbinds \
wait"3"
zinit light @zdharma-continuum/zbrowse
```This will make `Ctrl`+`H` the default keybinding to invoke Zbrowse.
### Antigen
Add `antigen bundle zdharma-continuum/zbrowse` to your `.zshrc` file. Antigen will handle cloning the plugin for you
automatically the next time you start zsh.### Oh-My-Zsh
1. `cd ~/.oh-my-zsh/custom/plugins`
1. `git clone https://github.com/zdharma-continuum/zbrowse`
1. Add `zbrowse` to your plugin list### Zgen
Add `zgen load zdharma-continuum/zbrowse` to your .zshrc file in the same place you're doing your other `zgen load`
calls.[gitter-image]: https://badges.gitter.im/zdharma-continuum/community.svg
[gitter-link]: https://gitter.im/zdharma-continuum/community