Skip to content

CF Prompt plugin formats a string containing placeholders, so you can show it in your prompt.

Notifications You must be signed in to change notification settings

alphagov/paas-cf-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CF Prompt plugin

CF Prompt plugin formats a string containing placeholders, so you can show it in your prompt.

Usage

$ cf prompt "You're targetting org %o and space %s"
You're targetting org FOO and space BAR

To use this in your shell prompt, export the PS1 variable in your ~/.bashrc (or equivalent):

export PS1="\$(cf prompt '%o/%s (%a)') $ "

Installation

go build -o cf-prompt
cf install-plugin -f ./cf-prompt

About

CF Prompt plugin formats a string containing placeholders, so you can show it in your prompt.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages