From 64cf20440865595a4c6c71859a964ddbea0389e2 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 2 Jun 2015 10:28:55 +1000 Subject: [PATCH] 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 --- doc/source/faq.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/doc/source/faq.rst b/doc/source/faq.rst index 87f84693df..b09d386048 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -75,6 +75,21 @@ Can I test on OS/X? Some people have success with bash 4 installed via homebrew to keep running tests on OS/X. +Can I at least source ``openrc`` with ``zsh``? +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +People have reported success with a special function to run ``openrc`` +through bash for this + +.. code-block:: bash + + function sourceopenrc { + pushd ~/devstack >/dev/null + eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'") + popd >/dev/null + } + + Operation and Configuration ===========================