Ensure that $ONOS_CELL variable will not be overwritten when bash profile is loaded
you don't need to reload cell enviroment when open new terminal. Change-Id: I073a6de71376e868d96e5216509c1d6b52bc7e52
Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -27,6 +27,9 @@ export PATH="$PATH:$ONOS_ROOT/tools/dev/bin:$ONOS_ROOT/tools/test/bin" | ... | @@ -27,6 +27,9 @@ export PATH="$PATH:$ONOS_ROOT/tools/dev/bin:$ONOS_ROOT/tools/test/bin" |
27 | export PATH="$PATH:$ONOS_ROOT/tools/build" | 27 | export PATH="$PATH:$ONOS_ROOT/tools/build" |
28 | export PATH="$PATH:$MAVEN/bin:$KARAF_ROOT/bin" | 28 | export PATH="$PATH:$MAVEN/bin:$KARAF_ROOT/bin" |
29 | 29 | ||
30 | +# Setup cell enviroment | ||
31 | +export ONOS_CELL=${ONOS_CELL:-local} | ||
32 | + | ||
30 | # Convenience utility to warp to various ONOS source projects | 33 | # Convenience utility to warp to various ONOS source projects |
31 | # e.g. 'o api', 'o dev', 'o' | 34 | # e.g. 'o api', 'o dev', 'o' |
32 | function o { | 35 | function o { |
... | @@ -112,7 +115,7 @@ function cell { | ... | @@ -112,7 +115,7 @@ function cell { |
112 | fi | 115 | fi |
113 | } | 116 | } |
114 | 117 | ||
115 | -cell local >/dev/null # Default cell is the local VMs | 118 | +cell $ONOS_CELL > /dev/null |
116 | 119 | ||
117 | # Lists available cells | 120 | # Lists available cells |
118 | function cells { | 121 | function cells { | ... | ... |
-
Please register or login to post a comment