diff --git a/Extras.md b/Extras.md index 6f1c4fd..9b8f883 100644 --- a/Extras.md +++ b/Extras.md @@ -28,7 +28,9 @@ This script is useful to capture the preferences of the known applications (both This script is useful to capture the raycast preferences/configurations. It can be used to both export the preferences/settings (from the old system) or import them (into the new system) ```bash + export RAYCAST_SETTINGS_PASSWORD='my-passoword' capture-raycast-configs.sh e "${PERSONAL_PROFILES_DIR}/extension-backups" + capture-raycast-configs.sh i "${PERSONAL_PROFILES_DIR}/extension-backups" ``` *Please note:* diff --git a/scripts/capture-raycast-configs.sh b/scripts/capture-raycast-configs.sh index 9df18d4..1eb18e6 100755 --- a/scripts/capture-raycast-configs.sh +++ b/scripts/capture-raycast-configs.sh @@ -58,20 +58,41 @@ EOF elif [[ "${1}" == 'i' ]]; then ! is_file "${target_file}" && error "Couldn't find file: '$(yellow "${target_file}")' for import operation; Aborting!!!" + # TODO: Get this from password manager + password=$RAYCAST_SETTINGS_PASSWORD + open raycast://extensions/raycast/raycast/import-settings-data - # TODO: Need to get import working osascript <