ohmyzsh/plugins/gcp-ps1
2019-06-18 21:44:51 +10:00
..
gcp-ps1.plugin.zsh add basic gcp-ps1 2019-06-18 21:44:51 +10:00
README.md add basic gcp-ps1 2019-06-18 21:44:51 +10:00

gcp prompt for zsh

Prompt which displays current configuration

Current state

Tested only on ubuntu. May or may not work on FreeBSD or osX. Feel free to fix any issue!

Requirements

gcloud

Enabling

In order to use gcp-ps1 with Oh My Zsh, you'll need to enable them in the .zshrc file. You'll find the zshrc file in your $HOME directory.

vim $HOME/.zshrc

Add gcp-ps1 to the list of enabled plugins and enable it on the prompt:

plugins=(
  git
  gcp-ps1
)

PROMPT=$PROMPT'$(gcp_ps1) '