Skip to content

Instantly share code, notes, and snippets.

@dmikusa
dmikusa / cfenv.sh
Last active August 29, 2015 14:02
A handy function that you can add to your profile for managing connections to different CloudFoundry instances.
function cfenv () {
function curenv () {
if [ "$1" == "" ]; then
CURENV="default"
else
CURENV="$(echo "$1" | cut -d '-' -f 2)"
fi
}
function listenvs () {
echo "Listing available environments..."