Browse code

Add note on openrc and zsh

Add a note about running openrc through bash for import into zsh, as
shown by Chmouel Boudjnah in I5b6c8cfedcdd36efb4cbc91831501ee5c9c3b1d1

Change-Id: I5f1c9fc3fdc045cf6fb69af13f6264a81bf5f763
Closes-Bug: #1460656

Ian Wienand authored on 2015/06/02 09:28:55
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