Skip to content

Instantly share code, notes, and snippets.

@Tahul
Last active December 22, 2020 00:46
Show Gist options
  • Save Tahul/7bac932d47296b4a24435421525bdd74 to your computer and use it in GitHub Desktop.
Save Tahul/7bac932d47296b4a24435421525bdd74 to your computer and use it in GitHub Desktop.
[MacOS Enable Or Disable Dock] Simple command aliases to toggle MacOS Dock. #macos #terminal #dock #toggle #alias
# This is intended to be added inside a sourced file in your shell, such as ~/.bash_profile.
# If you want to use the command once, you can copy the text between the quotes inside your terminal.
# Disable dock alias
alias disable_dock="defaults write com.apple.dock autohide-delay -float 1000; killall Dock"
# Enable dock
alias enable_dock="defaults delete com.apple.dock autohide-delay; killall Dock"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment