Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rmrs/firebase-zsh
Firebase zsh plugin
https://github.com/rmrs/firebase-zsh
Last synced: about 1 month ago
JSON representation
Firebase zsh plugin
- Host: GitHub
- URL: https://github.com/rmrs/firebase-zsh
- Owner: rmrs
- License: mit
- Created: 2017-10-05T01:05:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2017-10-05T01:10:57.000Z (over 6 years ago)
- Last Synced: 2024-03-25T20:56:22.678Z (about 2 months ago)
- Language: Shell
- Size: 82 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - firebase (rmrs) - Add an indicator in the prompt that you're in a directory with a `firebase.json` file (aka "firebase project"). (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - firebase (rmrs) - Add an indicator in the prompt that you're in a directory with a `firebase.json` file (aka "firebase project"). (Plugins / ZSH on Windows)
- awesome-zsh-plugins - firebase (rmrs) - Add an indicator in the prompt that you're in a directory with a `firebase.json` file (aka "firebase project"). (Plugins / ZSH on Windows)
- awesome-zsh-plugins - firebase (rmrs) - Add an indicator in the prompt that you're in a directory with a `firebase.json` file (aka "firebase project"). (Plugins / Zinit (née zplugin))
README
# firebase-zsh
Add a prompt indication that you're in a directory with `firebase.json` (aka "firebase project").
## Getting started
Download the plugin file [`firebase.plugin.zsh`](https://github.com/rmrs/firebase-zsh/raw/master/firebase.plugin.zsh) and move it to
`~/.oh-my-zsh/plugins/firebase/firebase.plugin.zsh`.Add the given plugin to your `plugins` list in the `.zshrc` file:
~~~
plugins=(git firebase)
~~~Update the shell prompt of your theme:
### robbyrussell theme
`robbyrussel` is the default `oh-my-zsh` theme. Update the `PROMPT` variable
in the file `.oh-my-zsh/themes/robbyrussell.zsh-theme` with
`$(firebase_status_robbyrussell)`:
~~~
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(firebase_status_robbyrussell) $(git_prompt_info)'
~~~### eastwood theme
Update the `PROMPT` variable
in the file `.oh-my-zsh/themes/eastwood.zsh-theme` with
`$(firebase_status_eastwood)`:~~~
PROMPT='$(git_custom_status)$(firebase_status_eastwood)%{$fg[cyan]%}[%~% ]%{$reset_color%}%B$%b '
~~~