I used the how to from https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html
to install AWS CLI on macOS.
After executing command source ~/.bash_profile
it seems that my default PATH location from file /private/etc/paths was lost.
/private/etc/paths file content:
/usr/bin/vim /private/etc/paths
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
~/.bash_profile file content:
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
For example next command cant find the location of basic files installed in /usr/bin/: -bash: vim: command not found
Is it a way to restore path to be reading from /private/etc/paths?
echo $PATH
/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/<myusername>/bin:/Library/Python/3.6/bin/
Also I can't use the same command to reread from the location
source /private/etc/paths
-bash: /usr/local/bin: is a directory
-bash: /usr/bin: is a directory
-bash: /bin: is a directory
-bash: /usr/sbin: is a directory
-bash: /sbin: is a directory
export PATH ...
somewhere which breaks your default path. Otherwiseecho $PATH
wouldn't show:...:/Users/<myusername>/bin:/Library/Python/3.6/bin/
! Please fix your ugly /private/etc/paths content: 1. remove empty lines 2. remove spaces and /private/etc/paths (/private/etc/paths is no directory)!:$PATH
in the end. Is it a way to use default file location? Now I added all the default paths in.bash_profile
and all works nice. Just want to be configured in correct and clear way