mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2025-11-05 09:22:42 +01:00
Compare commits
3 commits
fb45cc5279
...
a86e9462f2
| Author | SHA1 | Date | |
|---|---|---|---|
| a86e9462f2 | |||
| 1df5fa5618 | |||
| 69bd6e9a5c |
4 changed files with 35 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
# Include configs
|
||||
!.nanorc
|
||||
!Makefile
|
||||
!.tmux.conf
|
||||
!.gitconfig
|
||||
!.ssh/config
|
||||
|
|
@ -12,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"
|
||||
]
|
||||
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
install: dotfiles git-hooks
|
||||
|
||||
# Install dotfiles in users home directory
|
||||
dotfiles:
|
||||
@if [ -d dotfiles ]; then \
|
||||
cp -r ./dotfiles/. $HOME \
|
||||
rm -rf dotfiles \
|
||||
else \
|
||||
echo "Dotfiles already installed or folder is missing"; \
|
||||
fi
|
||||
|
||||
# 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