Download next.js/scripts/LaunchAgents/install-macos-agents.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/LaunchAgents/install-macos-agents.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/scripts/LaunchAgents/install-macos-agents.sh
-
curl -L -o install-macos-agents.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/LaunchAgents/install-macos-agents.sh
537 Bytes
| # | |
| # Optionally automates compressing target/ and other directories. | |
| # Only intended for and needed on macOS. | |
| set -e | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| NEXT_DIR=$(realpath "$SCRIPT_DIR/../..") | |
| defaults write build.turbo.repopath -string "$NEXT_DIR" | |
| for filename in "$SCRIPT_DIR"/*.plist; do | |
| PLIST_FILE="$HOME/Library/LaunchAgents/$(basename "$filename")" | |
| ln -sf "$filename" "$PLIST_FILE" | |
| launchctl unload "$PLIST_FILE" || true | |
| launchctl load "$PLIST_FILE" | |
| done | |