#!/usr/bin/env bash # Register the native messaging host with Firefox for the current user. set -euo pipefail HOST_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" HOST_SCRIPT="$HOST_DIR/quick_profile_host.py" MANIFEST_DIR="$HOME/.mozilla/native-messaging-hosts" chmod +x "$HOST_SCRIPT" mkdir -p "$MANIFEST_DIR" cat > "$MANIFEST_DIR/quick_profile.json" < $HOST_SCRIPT"