Added a short-hand for setting the OCI variable.
Added export.

Change-Id: I1e9b5366ce460995d494f7df81659fea0b6c8584
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index c383c54..586c8a6 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -46,6 +46,7 @@
 alias ot='onos-test'
 alias ol='onos-log'
 alias ow='onos-watch'
+alias oi='setPrimaryInstance'
 alias go='ob && ot && onos -w'
 alias pub='onos-push-update-bundle'
 
@@ -99,6 +100,12 @@
     done
 }
 
+# Sets the primary instance to the specified instance number.
+function setPrimaryInstance {
+    export OCI=$(env | egrep "OC[0-9]+" | sort | egrep OC${1:-1} | cut -d= -f2)
+    echo $OCI
+}
+
 # Miscellaneous
 function spy {
     ps -ef | egrep "$@" | grep -v egrep