New answers tagged

2

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.)


0

This is a similar answer, and one I wound up using myself. import os os.system("osascript -e 'mount volume \"smb://Server/Share\"'") #Do my important functions os.system("umount /Volumes/Share") The pros are: Uses the keychain credentials for the current user Will wake up a sleeping Mac to attach to the smb share Will ...


-1

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 ...


1

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 ...


-1

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. import os os.environ['QT_MAC_WANTS_LAYER'] = '1' And that worked for me


Top 50 recent answers are included