add sublime

This commit is contained in:
2025-10-01 14:33:36 -04:00
parent dfa910cb36
commit 522f6910a2
7 changed files with 916 additions and 0 deletions

10
sync.sh
View File

@@ -54,6 +54,16 @@ get_system_path() {
echo "$HOME_DIR/$rel_path"
fi
;;
.config/Sublime\ Text/Packages/User/*|.config/Sublime\ Text/Packages/user/*)
if [[ "$OSTYPE" == "darwin"* ]]; then
# Map .config/Sublime Text/Packages/User/* to ~/Library/Application Support/Sublime Text/Packages/User/*
local sublime_path="${rel_path#.config/Sublime\ Text/Packages/User/}"
[[ -z "$sublime_path" ]] && sublime_path="${rel_path#.config/Sublime\ Text/Packages/user/}"
echo "/Users/${USER}/Library/Application Support/Sublime Text/Packages/User/${sublime_path}"
else
echo "$HOME_DIR/$rel_path"
fi
;;
*)
echo "$HOME_DIR/$rel_path"
;;