mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-14 02:02:29 +00:00
Add 'itsok' function
This commit is contained in:
@@ -40,3 +40,12 @@ function demoprompt() {
|
|||||||
clear
|
clear
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Tag the file as OK to run
|
||||||
|
function itsok() {
|
||||||
|
if [[ $(uname) == "Darwin" ]]; then
|
||||||
|
xattr -r -d com.apple.quarantine $1
|
||||||
|
else
|
||||||
|
echo 'This only works on macOS...'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user