From d2a5845b5c899a88ed81397023296e0e3467ca45 Mon Sep 17 00:00:00 2001 From: Sho Date: Sat, 1 Aug 2026 23:37:38 +0900 Subject: [PATCH] refactor: update install.sh and export guide to use symbolic links for seamless git pull updates --- ZOEY_EXPORT_GUIDE.md | 14 +++++++------- install.sh | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ZOEY_EXPORT_GUIDE.md b/ZOEY_EXPORT_GUIDE.md index e197a49..cab1ea1 100644 --- a/ZOEY_EXPORT_GUIDE.md +++ b/ZOEY_EXPORT_GUIDE.md @@ -93,16 +93,16 @@ cmake --build build sudo cmake --install build ``` -### Step 3: Deploy QuickShell & Fastfetch Configurations to `~/.config/` +### Step 3: Symlink QuickShell & Fastfetch Configurations to `~/.config/` -Copy the QuickShell ecosystem and Fastfetch Hampter configuration into Zoey's `.config` directory: +Symlink the QuickShell ecosystem and Fastfetch Hampter configuration directly from the cloned repository so running `git pull` in the repo automatically updates `~/.config`: ```bash -mkdir -p ~/.config/quickshell ~/.config/fastfetch -cp -r quickshell/* ~/.config/quickshell/ -cp -r fastfetch/* ~/.config/fastfetch/ -chmod +x ~/.config/quickshell/toggle_launcher.sh -chmod +x ~/.config/quickshell/services/python/*.py +mkdir -p ~/.config +ln -snf "$(pwd)/quickshell" ~/.config/quickshell +ln -snf "$(pwd)/fastfetch" ~/.config/fastfetch +chmod +x quickshell/toggle_launcher.sh +chmod +x quickshell/services/python/*.py ``` ### Step 4: Configure `~/.bashrc` to Auto-run Fastfetch diff --git a/install.sh b/install.sh index 0cf6387..da3ae78 100755 --- a/install.sh +++ b/install.sh @@ -237,23 +237,23 @@ deploy_configs() { info "Deploying QuickShell configuration to ${TARGET_CONFIG_DIR}..." mkdir -p "${TARGET_CONFIG_DIR}" - # Quickshell Desktop Shell Config + # Quickshell Desktop Shell Config (Symlinked to repo so git pull auto-updates ~/.config/quickshell) if [ -d "${SCRIPT_DIR}/quickshell" ]; then - info "Deploying QuickShell QML ecosystem..." + info "Linking QuickShell QML ecosystem..." rm -rf "${TARGET_CONFIG_DIR}/quickshell" - cp -r "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell" - chmod +x "${TARGET_CONFIG_DIR}/quickshell/toggle_launcher.sh" - chmod +x "${TARGET_CONFIG_DIR}/quickshell/services/python/"*.py 2>/dev/null || true + ln -snf "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell" || cp -r "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell" + chmod +x "${SCRIPT_DIR}/quickshell/toggle_launcher.sh" + chmod +x "${SCRIPT_DIR}/quickshell/services/python/"*.py 2>/dev/null || true fi - # Fastfetch Hampter Config + # Fastfetch Hampter Config (Symlinked to repo so git pull auto-updates ~/.config/fastfetch) if [ -d "${SCRIPT_DIR}/fastfetch" ]; then - info "Deploying Fastfetch Hampter configuration to ${TARGET_CONFIG_DIR}/fastfetch..." - mkdir -p "${TARGET_CONFIG_DIR}/fastfetch" - cp -r "${SCRIPT_DIR}/fastfetch/"* "${TARGET_CONFIG_DIR}/fastfetch/" + info "Linking Fastfetch Hampter configuration..." + rm -rf "${TARGET_CONFIG_DIR}/fastfetch" + ln -snf "${SCRIPT_DIR}/fastfetch" "${TARGET_CONFIG_DIR}/fastfetch" || cp -r "${SCRIPT_DIR}/fastfetch" "${TARGET_CONFIG_DIR}/fastfetch" fi - success "QuickShell configuration deployed successfully!" + success "QuickShell configuration linked successfully to ${TARGET_CONFIG_DIR}!" } # 6. Deploy KDE Color Schemes & Konsole Profiles