Browse code

Merge "Add note on openrc and zsh"

Jenkins authored on 2015/06/18 11:27:02
Showing 1 changed files
... ...
@@ -75,6 +75,21 @@ Can I test on OS/X?
75 75
 Some people have success with bash 4 installed via homebrew to keep
76 76
 running tests on OS/X.
77 77
 
78
+Can I at least source ``openrc`` with ``zsh``?
79
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
+
81
+People have reported success with a special function to run ``openrc``
82
+through bash for this
83
+
84
+.. code-block:: bash
85
+
86
+   function sourceopenrc {
87
+       pushd ~/devstack >/dev/null
88
+       eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'")
89
+       popd >/dev/null
90
+   }
91
+
92
+
78 93
 Operation and Configuration
79 94
 ===========================
80 95