Skip to content
Zsh plugin to display a firebase prompt.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
res
.gitignore
LICENSE
README.md
firebase.plugin.zsh

README.md

firebase zsh plugin

Add a prompt indication to show which active firebase project your directory is pointed at, in case the directory is a firebase project.

It works with sub dirs too.

Think of the git prompt but instead of the current branch you have the current active project.

FB prompt robbyrussell

I have been inspired by ittus tutorial.

Getting started

Install the plugin by copying the plugin file into ~/.oh-my-zsh/plugins/firebase/firebase.plugin.zsh.

Enable the plugin editing the .zshrc file:

plugins=(
  git
  firebase
)

Now you can use the functions inside the plugin in the theme, the main one is firebase_prompt_info.

For robbyrussell theme, edit ~/.oh-my-zsh/themes/robbyrussell.zsh-theme:

PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)$(firebase_prompt_info)'

You can customize with the following variables:

ZSH_THEME_FIREBASE_PROMPT_PREFIX="%{$fg_bold[yellow]%}fb:(%{$fg[magenta]%}"
ZSH_THEME_FIREBASE_PROMPT_SUFFIX="%{$fg[yellow]%})%{$reset_color%} "
You can’t perform that action at this time.