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.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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:


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_SUFFIX="%{$fg[yellow]%})%{$reset_color%} "
You can’t perform that action at this time.