refactor: update install.sh and export guide to use symbolic links for seamless git pull updates
This commit is contained in:
parent
15d126780f
commit
d2a5845b5c
@ -93,16 +93,16 @@ cmake --build build
|
|||||||
sudo cmake --install 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
|
```bash
|
||||||
mkdir -p ~/.config/quickshell ~/.config/fastfetch
|
mkdir -p ~/.config
|
||||||
cp -r quickshell/* ~/.config/quickshell/
|
ln -snf "$(pwd)/quickshell" ~/.config/quickshell
|
||||||
cp -r fastfetch/* ~/.config/fastfetch/
|
ln -snf "$(pwd)/fastfetch" ~/.config/fastfetch
|
||||||
chmod +x ~/.config/quickshell/toggle_launcher.sh
|
chmod +x quickshell/toggle_launcher.sh
|
||||||
chmod +x ~/.config/quickshell/services/python/*.py
|
chmod +x quickshell/services/python/*.py
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 4: Configure `~/.bashrc` to Auto-run Fastfetch
|
### Step 4: Configure `~/.bashrc` to Auto-run Fastfetch
|
||||||
|
|||||||
20
install.sh
20
install.sh
@ -237,23 +237,23 @@ deploy_configs() {
|
|||||||
info "Deploying QuickShell configuration to ${TARGET_CONFIG_DIR}..."
|
info "Deploying QuickShell configuration to ${TARGET_CONFIG_DIR}..."
|
||||||
mkdir -p "${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
|
if [ -d "${SCRIPT_DIR}/quickshell" ]; then
|
||||||
info "Deploying QuickShell QML ecosystem..."
|
info "Linking QuickShell QML ecosystem..."
|
||||||
rm -rf "${TARGET_CONFIG_DIR}/quickshell"
|
rm -rf "${TARGET_CONFIG_DIR}/quickshell"
|
||||||
cp -r "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell"
|
ln -snf "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell" || cp -r "${SCRIPT_DIR}/quickshell" "${TARGET_CONFIG_DIR}/quickshell"
|
||||||
chmod +x "${TARGET_CONFIG_DIR}/quickshell/toggle_launcher.sh"
|
chmod +x "${SCRIPT_DIR}/quickshell/toggle_launcher.sh"
|
||||||
chmod +x "${TARGET_CONFIG_DIR}/quickshell/services/python/"*.py 2>/dev/null || true
|
chmod +x "${SCRIPT_DIR}/quickshell/services/python/"*.py 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fastfetch Hampter Config
|
# Fastfetch Hampter Config (Symlinked to repo so git pull auto-updates ~/.config/fastfetch)
|
||||||
if [ -d "${SCRIPT_DIR}/fastfetch" ]; then
|
if [ -d "${SCRIPT_DIR}/fastfetch" ]; then
|
||||||
info "Deploying Fastfetch Hampter configuration to ${TARGET_CONFIG_DIR}/fastfetch..."
|
info "Linking Fastfetch Hampter configuration..."
|
||||||
mkdir -p "${TARGET_CONFIG_DIR}/fastfetch"
|
rm -rf "${TARGET_CONFIG_DIR}/fastfetch"
|
||||||
cp -r "${SCRIPT_DIR}/fastfetch/"* "${TARGET_CONFIG_DIR}/fastfetch/"
|
ln -snf "${SCRIPT_DIR}/fastfetch" "${TARGET_CONFIG_DIR}/fastfetch" || cp -r "${SCRIPT_DIR}/fastfetch" "${TARGET_CONFIG_DIR}/fastfetch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
success "QuickShell configuration deployed successfully!"
|
success "QuickShell configuration linked successfully to ${TARGET_CONFIG_DIR}!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 6. Deploy KDE Color Schemes & Konsole Profiles
|
# 6. Deploy KDE Color Schemes & Konsole Profiles
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user