Skip to content

Commit 1243909

Browse files
author
Pablo Lezaeta
committed
install: support micro/vscode XDG mapping for settings/config JSON files
1 parent ba7f7da commit 1243909

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,22 @@ for MOD in "${MODULES[@]}"; do
8686
# Prefer Neovim user config path
8787
echo "$TARGET/.config/nvim/init.vim";;
8888
settings.json)
89-
# VSCode user settings
89+
# VSCode user settings or micro
9090
if [[ "$module_name" == "vscode" ]]; then
9191
echo "$TARGET/.config/Code/User/settings.json"
92+
elif [[ "$module_name" == "micro" ]]; then
93+
echo "$TARGET/.config/micro/settings.json"
9294
else
9395
# unknown mapping, default to HOME
9496
echo "$TARGET/$srcfile"
9597
fi;;
98+
config.json)
99+
# micro: config.json -> ~/.config/micro/config.json
100+
if [[ "$module_name" == "micro" ]]; then
101+
echo "$TARGET/.config/micro/config.json"
102+
else
103+
echo "$TARGET/$srcfile"
104+
fi;;
96105
*)
97106
echo "$TARGET/$srcfile";;
98107
esac

0 commit comments

Comments
 (0)