Add reset launchpad layout function
The layout will have returned to the default, placing all bundled apps onto the first screen of Launchpad, and third party apps onto the secondary (and third, if applicable) screenspull/1162/head
parent
517d4b2ca4
commit
f168ce8109
|
|
@ -95,5 +95,18 @@ function prevcurl() {
|
|||
curl "$*" | open -fa $PREVIEW
|
||||
}
|
||||
|
||||
function refresh-launchpad() {
|
||||
about 'Reset launchpad layout in macOS'
|
||||
example '$ refresh-launchpad'
|
||||
group 'osx'
|
||||
|
||||
if [ $(uname) = "Darwin" ];then
|
||||
defaults write com.apple.dock ResetLaunchPad -bool TRUE
|
||||
killall Dock
|
||||
else
|
||||
echo "Sorry, this only works on Mac OS X"
|
||||
fi
|
||||
}
|
||||
|
||||
# Make this backwards compatible
|
||||
alias pcurl='prevcurl'
|
||||
|
|
|
|||
Loading…
Reference in New Issue