mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 19:22:31 +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
|
# Updates the dock
|
||||||
function update-dock() {
|
function update-dock() {
|
||||||
idx=1
|
idx=1
|
||||||
Reference in New Issue
Block a user