Navigate to your user folder in Finder: /Users/username/
Make hidden files visible (the shortcut is ShiftCmd.)
Right click .bash_profile and Open With... your text editor of choice.
ShiftCmd. one more time in Finder to make hidden files invisible again. (Not required, just a good idea.)
This is a similar answer, and one I wound up using myself.
os.system("osascript -e 'mount volume \"smb://Server/Share\"'")
#Do my important functions
The pros are:
Uses the keychain credentials for the current user
Will wake up a sleeping Mac to attach to the smb share
I could not find the correct solution to a similar problem of mine (with vim quitting unexpectedly) to quickly rollback to the previous version of python.
Here is the oneliner I often use. In this case, it would be:
Disclaimer: some programs from brew manager may require other versions of python due to their own dependencies.
brew update && brew ...
Many cross-platform software packages adopt a convention of keeping configuration and data in dot-files/directories inside your home folder. Most of the time this behavior is not configurable and if you remove these then you’re likely to lose some or all of your configuration and/or data for these programs.
As @nohillside mentions, these are already hidden ...
I just found the answer in this stackoverflow question. For some weird reason, one has to add the following piece of code at the beginning of the script.
os.environ['QT_MAC_WANTS_LAYER'] = '1'
And that worked for me