I want to delete code I wrote it in (terminal app)

Today I wrote this code ( defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock) to make dock faster , Now I want to undo the dock to original speed pls help

MacBook Pro 13″

Posted on Mar 16, 2023 2:42 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 16, 2023 3:07 PM

defaults write com.apple.dock autohide-delay -float 0.5

defaults write com.apple.dock autohide-time-modifier -float 0.5

killall Dock


That will set them back to their default values. You can do them 1 at a time or combine them on one line use the ";" seperator.

3 replies

Mar 17, 2023 5:49 PM in response to Khalidhussainali

FYI, before running any commands you should always think about how you will reset what you are about to change.


In this case you may have been able to read the values as they are before modifying them, or you should ask to make sure there is an easy way to go back before making the changes.


Having a good backup just before making any modifications is a good idea as well, although you would need to know which file(s) would be affected by the command(s) in order to do a simple restore, otherwise it may be a full restore.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I want to delete code I wrote it in (terminal app)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.