Skip to content

openstack source openrc with zsh

Ryan Liang edited this page Apr 23, 2019 · 1 revision

How to source openrc with zsh

  1. Create file openrc_zsh with content:
#!/bin/env bash
function sourceopenrc {
    pushd ~/devstack >/dev/null
    eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'")
    popd >/dev/null
}
sourceopenrc admin admin
  1. Run source openrc_zsh.

Clone this wiki locally