6fecbf6ad5fc6e78dcfd89227cf8b12305b1f8bc
- Author
- Ben Wilcock <benwilcock@users.noreply.github.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/cloudfoundry/README.md b/plugins/cloudfoundry/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..89dd9d1ce2da1a75c2b5cef3ed0fcf539b634dfd
4--- /dev/null
5+++ b/plugins/cloudfoundry/README.md
6@@ -0,0 +1,58 @@
7+# Cloudfoundry Plugin
8+
9diff --git a/plugins/cloudfoundry/cloudfoundry.plugin.zsh b/plugins/cloudfoundry/cloudfoundry.plugin.zsh
10new file mode 100644
11index 0000000000000000000000000000000000000000..b6715787e3cb15f301939613aa0f8d5c6f74ff00
12--- /dev/null
13+++ b/plugins/cloudfoundry/cloudfoundry.plugin.zsh
14@@ -0,0 +1,34 @@
15+# Some Useful CloudFoundry Aliases & Functions
16+alias cfl="cf login"
17+alias cft="cf target"
18+alias cfa="cf apps"
19+alias cfs="cf services"
20+alias cfm="cf marketplace"
21+alias cfp="cf push"
22+alias cfcs="cf create-service"
23+alias cfbs="cf bind-service"
24+alias cfus="cf unbind-service"
25+alias cfds="cf delete-service"
26+alias cfup="cf cups"
27+alias cflg="cf logs"
28+alias cfr="cf routes"
29+alias cfe="cf env"
30+alias cfsh="cf ssh"
31+alias cfsc="cf scale"
32+alias cfev="cf events"
33+alias cfdor="cf delete-orphaned-routes"
34+alias cfbpk="cf buildpacks"
35+alias cfdm="cf domains"
36+alias cfsp="cf spaces"
37+function cfap() { cf app $1 }
38+function cfh.() { export CF_HOME=$PWD/.cf }
39+function cfh~() { export CF_HOME=~/.cf }
40+function cfhu() { unset CF_HOME }
41+function cfpm() { cf push -f $1 }
42+function cflr() { cf logs $1 --recent }
43+function cfsrt() { cf start $1 }
44+function cfstp() { cf stop $1 }
45+function cfstg() { cf restage $1 }
46+function cfdel() { cf delete $1 }
47+function cfsrtall() {cf apps | awk '/stopped/ { system("cf start " $1)}'}
48+function cfstpall() {cf apps | awk '/started/ { system("cf stop " $1)}'}