feat: VSCodium settings ins Profil aufgenommen

This commit is contained in:
2026-04-27 09:32:09 +02:00
parent 8a33636356
commit 7d4d8901a4
2 changed files with 37 additions and 0 deletions
+20
View File
@@ -22,6 +22,26 @@ for dir in "${CONFIG_DIRS[@]}"; do
echo " linked ~/.config/$dir"
done
# Symlink individual config files (for apps where only specific files are tracked)
CONFIG_FILES=(
"VSCodium/User/settings.json:.config/VSCodium/User/settings.json"
)
for entry in "${CONFIG_FILES[@]}"; do
src="${entry%%:*}"
dst="${entry##*:}"
source="$PROFILE_DIR/config/$src"
target="$HOME/$dst"
[[ ! -f "$source" ]] && continue
mkdir -p "$(dirname "$target")"
if [[ -f "$target" && ! -L "$target" ]]; then
echo " backing up $target -> ${target}.bak"
mv "$target" "${target}.bak"
fi
ln -sf "$source" "$target"
echo " linked ~/$dst"
done
# Set active profile
ln -sfn "$PROFILE_DIR" "$HOME/.active_profile"
echo " active profile -> $PROFILE_NAME"