mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-11-23 15:11:05 +01:00
fix: dump handle dirnames, existing dirs
This commit is contained in:
parent
9592196853
commit
fb76f29857
4 changed files with 75 additions and 3 deletions
56
.config/zed/settings.json
Normal file
56
.config/zed/settings.json
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
// Zed settings
|
||||||
|
//
|
||||||
|
// For information on how to configure Zed, see the Zed
|
||||||
|
// documentation: https://zed.dev/docs/configuring-zed
|
||||||
|
//
|
||||||
|
// To see all of Zed's default settings without changing your
|
||||||
|
// custom settings, run the `open default settings` command
|
||||||
|
// from the command palette or from `Zed` application menu.
|
||||||
|
{
|
||||||
|
"theme": "One Dark",
|
||||||
|
"ui_font_size": 15,
|
||||||
|
"buffer_font_size": 14,
|
||||||
|
// Mine
|
||||||
|
"format_on_save": "on",
|
||||||
|
"terminal": {
|
||||||
|
"font_family": "DejaVuSansM Nerd Font",
|
||||||
|
"line_height": "standard",
|
||||||
|
"font_size": 15
|
||||||
|
},
|
||||||
|
"project_panel": {
|
||||||
|
"default_width": 320
|
||||||
|
},
|
||||||
|
// ruby
|
||||||
|
"lsp": {
|
||||||
|
"solargraph": {
|
||||||
|
"initialization_options": {
|
||||||
|
"diagnostics": true,
|
||||||
|
"formatting": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// The following settings have been changed from the upstream defaults to
|
||||||
|
// improve security and privacy. Here are the upstream defaults, you can
|
||||||
|
// uncomment them if you like.
|
||||||
|
//
|
||||||
|
// "features": {
|
||||||
|
// // Enable copilot (provided by an online service).
|
||||||
|
// "copilot": true,
|
||||||
|
// "inline_completion_provider": "copilot"
|
||||||
|
// },
|
||||||
|
// "assistant": {
|
||||||
|
// "version": "1",
|
||||||
|
// // Enable the assistant (provided by an online service).
|
||||||
|
// "enabled": true
|
||||||
|
// },
|
||||||
|
// "telemetry": {
|
||||||
|
// // Send debug info like crash reports to Zed Industries.
|
||||||
|
// "diagnostics": true,
|
||||||
|
// // Send anonymized usage data like what languages you're using Zed with
|
||||||
|
// // to Zed Industries.
|
||||||
|
// "metrics": true
|
||||||
|
// },
|
||||||
|
// "journal": {
|
||||||
|
// "hour_format": "hour12"
|
||||||
|
// }
|
||||||
|
}
|
8
.local/bin/yarn
Executable file
8
.local/bin/yarn
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $1 == "build" ]]; then
|
||||||
|
bun run $@
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
bun $@
|
|
@ -8,9 +8,16 @@ def dump(stuff: list[str]):
|
||||||
|
|
||||||
for path in glob(expand, recursive=True):
|
for path in glob(expand, recursive=True):
|
||||||
normalized_path = path.removeprefix(os.path.expanduser("~/"))
|
normalized_path = path.removeprefix(os.path.expanduser("~/"))
|
||||||
if os.path.isdir(normalized_path) and not os.path.exists(normalized_path):
|
if os.path.isdir(path):
|
||||||
os.mkdir(normalized_path)
|
if os.path.exists(normalized_path):
|
||||||
elif os.path.isfile(normalized_path):
|
shutil.rmtree(normalized_path)
|
||||||
|
|
||||||
|
os.makedirs(normalized_path)
|
||||||
|
else:
|
||||||
|
dirname = os.path.dirname(normalized_path)
|
||||||
|
if dirname:
|
||||||
|
os.makedirs(dirname, exist_ok=True)
|
||||||
|
|
||||||
shutil.copy2(path, normalized_path)
|
shutil.copy2(path, normalized_path)
|
||||||
|
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
1
goog
1
goog
|
@ -9,6 +9,7 @@ from common.util import expand
|
||||||
|
|
||||||
stuff: list[str] = [
|
stuff: list[str] = [
|
||||||
*expand("~/.config/{kitty,nvim,openbox,pipewire,tint2,zed}/**"),
|
*expand("~/.config/{kitty,nvim,openbox,pipewire,tint2,zed}/**"),
|
||||||
|
"~/.config/starship.toml",
|
||||||
"~/.themes/**",
|
"~/.themes/**",
|
||||||
*expand("~/.local/bin/{yarn}"),
|
*expand("~/.local/bin/{yarn}"),
|
||||||
"~/.bashrc",
|
"~/.bashrc",
|
||||||
|
|
Loading…
Reference in a new issue