mirror of https://github.com/ohmyzsh/ohmyzsh.git
Update macos.plugin.zsh
This commit is contained in:
parent
f4614da3b6
commit
b9085f7dba
|
@ -17,7 +17,7 @@ function ofd {
|
||||||
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
|
||||||
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
|
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
|
||||||
|
|
||||||
# Reset Launchpad layout (defaults method does not work in MacOS Sequoia and onward)
|
# Reset the Launchpad layout
|
||||||
function resetlaunchpad() {
|
function resetlaunchpad() {
|
||||||
if [[ "$(sw_vers --productVersion)" -ge 15.0 ]]; then
|
if [[ "$(sw_vers --productVersion)" -ge 15.0 ]]; then
|
||||||
local user_dir="$(getconf DARWIN_USER_DIR)"
|
local user_dir="$(getconf DARWIN_USER_DIR)"
|
||||||
|
|
Loading…
Reference in New Issue