mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
22 lines
635 B
Bash
Executable File
22 lines
635 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Refresh the ~/.config/chromium-flags.conf file from the Omarchy defaults.
|
|
|
|
CONFIG_FILE="$HOME/.config/chromium-flags.conf"
|
|
INSTALL_GOOGLE_ACCOUNTS=false
|
|
|
|
# Check if google accounts were installed
|
|
if [[ -f $CONFIG_FILE ]] && \
|
|
grep -q -- "--oauth2-client-id" "$CONFIG_FILE" && \
|
|
grep -q -- "--oauth2-client-secret" "$CONFIG_FILE"; then
|
|
INSTALL_GOOGLE_ACCOUNTS=true
|
|
fi
|
|
|
|
# Refresh the Chromium configuration
|
|
omarchy-refresh-config chromium-flags.conf
|
|
|
|
# Re-install Google accounts if previously configured
|
|
if [[ $INSTALL_GOOGLE_ACCOUNTS == "true" ]]; then
|
|
omarchy-install-chromium-google-account
|
|
fi
|