Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (27 sloc) 1.28 KB

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.