update for focus
This commit is contained in:
16
sync.sh
16
sync.sh
@@ -36,13 +36,6 @@ get_system_path() {
|
|||||||
|
|
||||||
# Special case mappings for specific files
|
# Special case mappings for specific files
|
||||||
case "$rel_path" in
|
case "$rel_path" in
|
||||||
"global.focus-config")
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
||||||
echo "/Users/${USER}/Library/Application Support/dev.focus-editor/global.focus-config"
|
|
||||||
else
|
|
||||||
echo "$HOME_DIR/$rel_path"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
.config/Code/User/*)
|
.config/Code/User/*)
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
# Map .config/Code/User/* to ~/Library/Application Support/Code/User/*
|
# Map .config/Code/User/* to ~/Library/Application Support/Code/User/*
|
||||||
@@ -52,6 +45,15 @@ get_system_path() {
|
|||||||
echo "$HOME_DIR/$rel_path"
|
echo "$HOME_DIR/$rel_path"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
.config/focus-editor/*)
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
# Map .config/focus-editor/* to ~/Library/Application Support/dev.focus-editor/*
|
||||||
|
local focus_path="${rel_path#.config/focus-editor/}"
|
||||||
|
echo "/Users/${USER}/Library/Application Support/dev.focus-editor/${focus_path}"
|
||||||
|
else
|
||||||
|
echo "$HOME_DIR/$rel_path"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$HOME_DIR/$rel_path"
|
echo "$HOME_DIR/$rel_path"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user