I have a ~/.oracle file containing:
export OCI_DIR=~/oracle/instantclient_12_2
export PATH=$PATH:~/oracle/instantclient_12_2
export NLS_LANG=AMERICAN_AMERICA.UTF8
How can I load the ~/.oracle file in my ~/.bashrc or ~/.zshrc file?
CodePudding user response:
Add a line like this into your ~/.bashrc or ~/.zshrc file:
source $HOME/.oracle
Note that you should use $HOME, rather than ~ in those files.
