Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.19 KB

USEFUL_COMMANDS.md

File metadata and controls

39 lines (24 loc) · 1.19 KB

Useful commands

Here is a collection of useful commands which are rarely run, but quite handy :)

macOS

Screenshot directory

Here is how you can change the default directory for your screenshots:

mkdir -p ~/Pictures/Screenshots/ # Create the screenshot directory
defaults write com.apple.screencapture location ~/Pictures/Screenshots # Define your new directory as the screenshot destination

Dock hiding delay

defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock

TouchID for sudo commands

To be able to use TouchID for sudo commands, add this line to the /etc/pam.d/sudo file: auth sufficient pam_tid.so

sudo vi /etc/pam.d/sudo

# paste this line
auth       sufficient     pam_tid.so

Then restart iTerm2.

Microphone toggle

Service to toggle on/off the microphone: https://medium.com/macoclock/how-in-the-bleep-do-i-mute-my-mic-anywhere-on-macos-d2fa1185b13.

Then you can assign a shortcut to this service in the System Preferences > Keyboard > Shortcuts > Services