Compare commits

...

4 Commits

Author SHA1 Message Date
zumbiepig 1c156d253d
Merge c86610aa41 into 7a3695aadf 2025-01-12 14:47:05 -08:00
Michele Bologna 7a3695aadf
fix(grc): add linuxbrew path (#12903) 2025-01-12 14:25:00 +01:00
zumbiepig c86610aa41
check macos version before setting alias 2025-01-02 14:12:58 -08:00
zumbiepig 9592349083
'resetlaunchpad' alias to reset Launchpad layout 2025-01-02 13:14:46 -08:00
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ files=(
/etc/grc.zsh # default /etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew darwin-x64 /usr/local/etc/grc.zsh # homebrew darwin-x64
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64 /opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
/home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew
/usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc) /usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc)
) )

View File

@ -17,6 +17,13 @@ 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)
if [[ "$(sw_vers --productVersion)" -ge 15.0 ]]; then
alias resetlaunchpad='rm -rf /private/$(getconf DARWIN_USER_DIR)/com.apple.dock.launchpad && killall Dock'
else
alias resetlaunchpad='defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock'
fi
# Bluetooth restart # Bluetooth restart
function btrestart() { function btrestart() {
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport