mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-13 01:32:30 +00:00
[macos] Combine macOS specific functions
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user