Skip to content

mac os general

Marcel Schmalzl edited this page Sep 6, 2024 · 12 revisions

Mac OS

General

Terminal

Fix error: can't be opened because Apple cannot check it for malicious software.

xattr -d com.apple.quarantine /Applications/<appName>.app

Stop Mac from stopping me opening files

# Check status with
sudo spctl --status

sudo spctl --master-disable

# Check status with
sudo spctl --status

Stop creating DS_STORE files

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

-> Reboot afterwards

Always show hidden files in Finder

defaults write com.apple.finder AppleShowAllFiles TRUE

Repeat key while holding it down

defaults write -g ApplePressAndHoldEnabled -bool false

-> A bit counter-intuitive but false = repeat while holding down

Modify banner display time

defaults write com.apple.notificationcenterui bannerTime 2               # Time in seconds

Windows/ISO keyboard

If you want to have the same keys assigned as for the Mac keyboard go to System Settings -> Keyboard -> Keyboard Shortcuts... -> On the left side select Modifier Keys -> In Select keyboard select the right keyboard (e.g. USB keybaord) and assign: Option key to Command and Command key to Option.

Apps move to different screens after reconnecting displays

If you reconnect your displays and applications are not in were they supposed to be but switched to another display. Move the devault display bar in arrange displays so that they fit again (somehow for me it worked best to circle it).

https://superuser.com/a/1220526/591879

Enbale terminal auto-complete

Add these lines to ~/.inputrc:

set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete

Python

To enable run:

# bash
python -m pip completion --bash >> ~/.zprofile
# zsh
python -m pip completion --zsh >> ~/.zprofile

Usually ~/.zprofile is empty.

Clone this wiki locally