Previously, my macOS dock looked like everyone else’s, with dozens of applications. Even if a program is closed, it still appears in the Dock. This clutters the screen and interferes with work: it is much more convenient when only the programs that are currently open are displayed in the Dock.
To enable this, you need to run the following command in Terminal:
defaults write com.apple.dock static-only -bool true; killall DockEvery time I reinstall the system, this is the first thing I configure on the new system.
If you don’t like it and need to roll back, run this command:
defaults write com.apple.dock static-only -bool false; killall Dock