feat: VSCodium settings ins Profil aufgenommen
This commit is contained in:
+20
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user