mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-02-26 02:32:03 +01:00
8 lines
280 B
Bash
Executable file
8 lines
280 B
Bash
Executable file
#!/bin/sh
|
|
|
|
EXTENSIONS_FILE_PATH="$HOME/.local/share/code-server/User/extensions.json"
|
|
|
|
rm $EXTENSIONS_FILE_PATH
|
|
|
|
# Add each extension to a JSON array and write to file in code-server User dir
|
|
code-server --list-extensions | jq -R -s 'split("\n") | .[:-1]' > $EXTENSIONS_FILE_PATH
|