Skip to content

Enhances your command prompt to display information about the currently targeted Cloud Foundry foundation.

Notifications You must be signed in to change notification settings

jregehr/cloud-foundry-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-foundry-prompt

Sample Prompt with CF Goodness

Enhances your command prompt to display the currently targeted CF_HOME, foundation, org, and space. The information is presented the way most prompts display the current working directory.

The code was originally written as a custom plugin and theme for the amazing oh-my-zsh. The theme was based on the existing bira theme.

Displaying the Prompt

Cloud Foundry info is only added to the prompt when you are in a directory that has Cloud Foundry stuff in it.

  • any folder containing manifest*.yml
  • any folder containing .show-cf-api-status

oh-my-zsh installation

Simply run ./oh-my-zsh/install-zsh.sh

Useful tips

The plugin works with or without CF_HOME set. But seriously, use the CF_HOME environment variable. You can stay logged in to multiple Cloud Foundry foundations and easily switch between them. More info at Pivotal Cloud Foundry / Getting Started with the cf cli

Future enhancements

  • Support other shells
  • Build this into a homebrew package for a clean install experience.

About

Enhances your command prompt to display information about the currently targeted Cloud Foundry foundation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages