macOS
From Noah.org
Jump to navigationJump to search
Contents
Brew: installation of Brew packages fail with "/usr/local/lib/pkgconfig is not writable."
During a step that creates symlinks you may see a message like this:
Error: Could not symlink file: /usr/local/Cellar/x264/r2197.4/lib/pkgconfig/x264.pc /usr/local/lib/pkgconfig is not writable. You should change its permissions.
I'm not sure what causes this. This seems to fix it; although, I'm not sure if this is the correct ownership to set:
sudo chown -R $USER /usr/local/lib/pkgconfig
Show all files in the Finder
defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
.DS_store sucks
.DS_store spreads like the common cold. There is no way to turn it off for locally mounted drives, including removable media, but you can disable it from being created on network drives.
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Also add to your .gitignore file:
.DS_store/
Fink
Install Fink and Fink Commander.
Install [XCode].
Show top level mounted drives (volumes) in the Finder
This is some same Applescript that I wrote. This gets me started with the basics.
(* Show top level mounted drives (volumes) in the Finder *) tell application "Finder" activate make new Finder window with properties {target:computer container} (* I can't set the column view in properties when making new Finder window because the user may have set the Finder view option "Always open in list view". *) set current view of front window to column view set zoomed of front window to true (* if using list view then adjust some of the columns... set sort column of list view options of front window to name column set sort column of list view options of front window to kind column set width of column id name column of list view options of front window to 200 set width of column id modification date column of list view options of front window to 170 set width of column id size column of list view options of front window to 90 set width of column id kind column of list view options of front window to 120 *) end tell (* tell application "System Events" if UI elements enabled then keystroke "t" using {command down, option down} else tell application "System Preferences" activate set current pane to pane "com.apple.preference.universalaccess" display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\"" end tell end if end tell *)