Add .config files
This commit is contained in:
parent
5753b14e3f
commit
8efbfd0164
4 changed files with 97 additions and 0 deletions
18
.config/alacritty/alacritty.toml
Normal file
18
.config/alacritty/alacritty.toml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
live_config_reload = true
|
||||||
|
|
||||||
|
[window]
|
||||||
|
|
||||||
|
opacity = 0.8
|
||||||
|
dynamic_padding = false
|
||||||
|
padding.x = 20
|
||||||
|
padding.y = 20
|
||||||
|
|
||||||
|
decorations = "buttonless"
|
||||||
|
decorations_theme_variant = "Light" # "Dark"
|
||||||
|
|
||||||
|
[font]
|
||||||
|
normal = { family = "ComicShannsMonoNerdFontMono", style = "regular" }
|
||||||
|
size = 13.0
|
||||||
|
|
||||||
|
[env]
|
||||||
|
TERM = "xterm-256color"
|
19
.config/zed/initPython.sh
Normal file
19
.config/zed/initPython.sh
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Überprüfen, ob pyrightconfig.json existiert, wenn nicht, erstelle es mit dem angegebenen Inhalt
|
||||||
|
if [ ! -f "pyrightconfig.json" ]; then
|
||||||
|
echo '{"venvPath": ".", "venv": ".venv"}' > pyrightconfig.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Überprüfen, ob das Verzeichnis .venv existiert, wenn nicht, erstelle ein virtuelles Python-Umfeld
|
||||||
|
if [ ! -d ".venv" ]; then
|
||||||
|
python3 -m venv .venv
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Überprüfen, ob requirements.txt existiert, wenn nicht, erstelle eine leere Datei
|
||||||
|
if [ ! -f "requirements.txt" ]; then
|
||||||
|
touch requirements.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Überprüfen, ob requirements.txt nicht leer ist, wenn nicht, installiere die Anforderungen
|
||||||
|
if [ -s "requirements.txt" ]; then
|
||||||
|
./.venv/bin/pip install -r requirements.txt
|
||||||
|
fi
|
25
.config/zed/settings.json
Normal file
25
.config/zed/settings.json
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
// 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.
|
||||||
|
{
|
||||||
|
"ui_font_size": 16,
|
||||||
|
"buffer_font_size": 16,
|
||||||
|
"theme": {
|
||||||
|
"mode": "system",
|
||||||
|
"light": "One Light",
|
||||||
|
"dark": "Ayu Mirage"
|
||||||
|
},
|
||||||
|
"file_scan_exclusions": [
|
||||||
|
".idea",
|
||||||
|
".git",
|
||||||
|
".code",
|
||||||
|
".venv",
|
||||||
|
"**/.run",
|
||||||
|
"**/__pycache__"
|
||||||
|
]
|
||||||
|
}
|
35
.config/zed/tasks.json
Normal file
35
.config/zed/tasks.json
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
// Static tasks configuration.
|
||||||
|
//
|
||||||
|
// Example:
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"label": "Run python selection",
|
||||||
|
"command": "python3",
|
||||||
|
"args": ["-c", "\"$ZED_SELECTED_TEXT\""],
|
||||||
|
"use_new_terminal": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Run python file",
|
||||||
|
"command": "python3",
|
||||||
|
"args": ["$ZED_FILE"],
|
||||||
|
"use_new_terminal": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Create new venv",
|
||||||
|
"command": "python3",
|
||||||
|
"args": ["-m", "venv", "$ZED_WORKTREE_ROOT/.venv"],
|
||||||
|
"use_new_terminal": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Delete venv",
|
||||||
|
"command": "rm",
|
||||||
|
"args": ["-rf", "$ZED_WORKTREE_ROOT/.venv"],
|
||||||
|
"use_new_terminal": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Setup Python Project (pyrightconfig.json)",
|
||||||
|
"command": "bash",
|
||||||
|
"args": ["~/.config/zed/initPython.sh"],
|
||||||
|
"use_new_terminal": false
|
||||||
|
}
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue