mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-04 17:08:46 +01:00
feat(code-server): add tracking of code-server extensions (#41)
Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/41
This commit is contained in:
parent
1df5fa5618
commit
a86e9462f2
4 changed files with 20 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -13,10 +13,13 @@
|
|||
!.config/git/**
|
||||
!.bash_aliases
|
||||
!.bash_profile
|
||||
!.local/bin/
|
||||
!.local/bin/code_server_export_extensions
|
||||
!.local/share/
|
||||
!.local/share/code-server/
|
||||
!.local/share/code-server/User/
|
||||
!.local/share/code-server/User/settings.json
|
||||
!.local/share/code-server/User/extensions.json
|
||||
!.local/share/VSCodium/
|
||||
!.local/share/VSCodium/User/
|
||||
!.local/share/VSCodium/User/settings.json
|
||||
|
|
|
|||
4
.local/bin/code_server_export_extensions
Executable file
4
.local/bin/code_server_export_extensions
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 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]' > $HOME/.local/share/code-server/User/extensions.json
|
||||
9
.local/share/code-server/User/extensions.json
Normal file
9
.local/share/code-server/User/extensions.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
"demartini.vscode-idiomatic-css-comments-snippets",
|
||||
"hangxingliu.vscode-nginx-conf-hint",
|
||||
"ms-python.debugpy",
|
||||
"ms-python.python",
|
||||
"ms-vscode.hexeditor",
|
||||
"ngtystr.ppm-pgm-viewer-for-vscode",
|
||||
"xdebug.php-debug"
|
||||
]
|
||||
4
Makefile
4
Makefile
|
|
@ -12,3 +12,7 @@ dotfiles:
|
|||
# Use tracked git hooks
|
||||
git-hooks:
|
||||
git config --local core.hooksPath .local/share/git/hooks
|
||||
|
||||
# Export code-server extensions to config directory
|
||||
code-extensions:
|
||||
~/.local/bin/code_server_export_extensions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue