These are things I always do with a new clean install of MacOS. Some of these are old and don't always apply, but keeping them here just in case.
-
-
Save jlafitte/47abe54162551a00e462 to your computer and use it in GitHub Desktop.
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:~/scripts | |
export CLICOLOR=1 | |
export LSCOLORS=hxFxBxDxCxegedabagacad | |
alias dir="ls -lahG" | |
alias ll="ls -lahG" | |
alias qws="python -m SimpleHTTPServer" | |
alias rscp='rsync -aP' | |
alias rsmv='rsync -aP --remove-source-files' | |
alias dnsflush='dscacheutil -flushcache;sudo killall -HUP mDNSResponder;echo DNS cache flushed' | |
alias sedit='sudo nano' | |
echo "Plan:" | |
cat ~/.plan |
set completion-ignore-case on | |
set show-all-if-ambiguous on |
I keep all of my AppData in my Google Drive folder which is synced. Google Drive will not sync symbolic links, so you have to keep the actual file in the Google Drive folder, but you can use a symbolic link in the app directory.
- Install and setup Google Drive, let it sync.
- Install RDC from the Mac App Store{:target="_blank"}
- Install Filezilla, preferrably from homebrew cask{:target="_blank"}
ln -s /Users/john/Google\ Drive/AppData/com.microsoft.rdc.mac.plist /Users/john/Library/Containers/com.microsoft.rdc.mac/Data/Library/Preferences/com.microsoft.rdc.mac.plist
sudo killall cfprefsd
ln -s /Users/john/Google\ Drive/AppData/filezilla /Users/john/.config/
/* This goes into ~/Library/KeyBindings/DefaultKeyBinding.dict */ | |
{ | |
/* home */ | |
"\UF729" = "moveToBeginningOfLine:"; | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
/* end */ | |
"\UF72B" = "moveToEndOfLine:"; | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
/* page up/down */ | |
"\UF72C" = "pageUp:"; | |
"\UF72D" = "pageDown:"; | |
} |
In Yosemite+ you no longer need to this. Just turn it off in System Preferences > Mission Control
I've never used this. The Dashboard seems to use a bit of RAM and possibly resources depending what widgets you have on it. I know some people like it, but I like to disable it.
sudo defaults write com.apple.dashboard mcx-disabled -boolean true
killall Dock
I've never used the notification center. The notifications just pile up and I never really see them. I know some people like it, but I like to disable it.
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
Log out and back in and notification center should be gone.
This doesn't seem to work in Yosemite, and there doesn't yet seem to be another way.
defaults write com.apple.dock pinning -string start
killall Dock
You can also use 'end' to bottom/right align it.
The information below is really no longer applicable. Java is completely unsupported on Chrome now. Just install java via homebrew and use Firefox when you need it.
[Download and install](http://support.apple.com/kb/DL1572){:target="_blank"}
[Follow procedures here](http://support.apple.com/kb/HT5559){:target="_blank"}
You can delete it but you need to disable SIP. To do it without risk of anything on your machine taking advantage of that, you can do everything from Recovery Mode. You'll need internet access to re-enable SIP (in my experience, wifi doesn't always connect in Recovery Mode, so make sure you know your wifi password or connect via ethernet). The procedure is:
- Disable Apple Intelligence in System Settings.
- Start up into Recovery Mode. (Instructions)
- Open Terminal (Utilities menu, Terminal)
- Type: csrutil disable
- Shut down and start back up in Recovery Mode.
- Open Disk Utility.
- Right-click on 'Data' under 'Macintosh HD' and choose Mount.
- Quit Disk Utility and open Terminal again.
- Type:
rm -rf /Volumes/Data/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_GenerativeModels
- Type:
rm -rf /Volumes/Data/System/Library/AssetsV2/com_apple_MobileAsset_UAF_FM_Visual
- Type: csrutil enable
- Reboot
In theory it shouldn't reappear unless you enable Apple Intelligence again.
While in recovery mode, you can remove anything else you don't need, just be careful. Some thing I have had to remove in the past:
- If you don't use Siri:
rm -rf /Volumese/Data/System/Library/CoreServices/Siri.app
- If you have orphaned XCode runtimes:
/Volumes/Data/Library/Developer/CoreSimulator
- Anything under
/Volumes/Data /Users/\john/Library/Containers
that you it won't allow you to delete normally