diff --git a/shell-common/.config/shell-common/functions.sh b/shell-common/.config/shell-common/functions.sh index 2f5ccb6..34c75f6 100644 --- a/shell-common/.config/shell-common/functions.sh +++ b/shell-common/.config/shell-common/functions.sh @@ -40,3 +40,12 @@ function demoprompt() { clear 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 +}