[macos] Combine macOS specific functions

This commit is contained in:
Andrew Williams
2025-07-30 13:40:43 +01:00
parent fcc7918f7f
commit 2b3f64646c
2 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +0,0 @@
# Updates Homebrew installation from the Brewfile
function update-brewfile() {
brew bundle check --file "$HOME/.config/Brewfile" || brew bundle --cleanup -f --file "$HOME/.config/Brewfile"
}

View File

@@ -1,3 +1,17 @@
# Tag the file as OK to run
function itsok() {
if [[ $(uname) == "Darwin" ]]; then
xattr -d com.apple.quarantine $1
else
echo 'This only works on macOS...'
fi
}
# Updates Homebrew installation from the Brewfile
function update-brewfile() {
brew bundle check --file "$HOME/.config/Brewfile" || brew bundle --cleanup -f --file "$HOME/.config/Brewfile"
}
# Updates the dock
function update-dock() {
idx=1