Setting up local bash profiles - abeedal/Abeedal GitHub Wiki
Setting up local bash profiles
In a terminal window enter the following
nano .bash_profile
The above is an example of how it will look when we are done (We can exclude NVM here as it is wrote automatically)
- Next you will need to enter the following lines
export ANDROID_HOME=/Users/YOUR_USER_GOES_HERE/Library/Android/sdk export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH export JAVA_HOME=/Library/java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home export PATH=/Users/YOUR_USER_GOES_HERE/Library/Python/3.9/bin:$PATH if you are having problems identifying your machines user you can enter the following command to to have it printed back to you
whoami
-
Now you have added the relevant lines next is to hit ctrl+O (Write-out) Then hit Enter to confirm the save (After confirming the save hit ctrl+X to exit nano)
-
Now all that’s left is to make sure everything has worked as intended. This can be done by doing the following and making sure non of them return as unrecognized commands. (In a NEW terminal window, do the following)
adb java pip3 If the above 3 commands all return options your bash profile is setup and ready to go!
If the above 3 commands do not return you arg options, then see below:
Sourcing your zshrc profile to work with bash: Some system architectures will require you to source your bash profile through your zshrc profile so it’s able to read from it.
Open terminal and enter the following:
nano .zshrc
Now you have your zshrc profile open, we want to add the following lines:
if [ -f ~/.bash_profile ]; then . ~/.bash_profile; fi
When finished it should look like this:
Now you have added the relevant lines next is to hit ctrl+O (Write-out) Then hit Enter to confirm the save (After confirming the save hit ctrl+X to exit nano)
At this point your bash and zshrc should be setup and you are ready to move onto the next setup steps!
(Feel free to repeat step 5 of the setup of bash profile to check if your CLI’s are now working)