first commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# configs — dotfiles (chezmoi)
|
||||
|
||||
Repo de configuración personal gestionado con [chezmoi]. Lo aplica
|
||||
`arch-setup` al final de la instalación:
|
||||
|
||||
```bash
|
||||
chezmoi init --apply https://gitea.josevi.ovh/josevi/configs.git
|
||||
```
|
||||
|
||||
(con token en la URL si el repo es privado).
|
||||
|
||||
## Qué gestiona
|
||||
|
||||
| Origen (chezmoi) | Destino |
|
||||
|--------------------------------------|----------------------------------|
|
||||
| `dot_zshrc` | `~/.zshrc` |
|
||||
| `dot_gitconfig.tmpl` | `~/.gitconfig` |
|
||||
| `dot_config/starship.toml` | `~/.config/starship.toml` |
|
||||
| `dot_config/kitty/kitty.conf` | `~/.config/kitty/kitty.conf` |
|
||||
| `dot_config/Code/User/settings.json` | `~/.config/Code/User/settings.json` |
|
||||
| `private_dot_ssh/config` | `~/.ssh/config` (0600) |
|
||||
|
||||
`.chezmoi.toml.tmpl` resuelve nombre/email de git desde las variables de
|
||||
entorno `GIT_NAME`/`GIT_EMAIL` (las inyecta `setup.sh`), o preguntando una vez.
|
||||
|
||||
## Convenciones chezmoi
|
||||
|
||||
- `dot_` → `.` en el destino. `private_` → permisos 0600. `.tmpl` → plantilla.
|
||||
- Edita siempre la fuente: `chezmoi edit ~/.zshrc`, luego `chezmoi apply`.
|
||||
- Los ajustes de **GUI/tema** (dconf de GNOME, look de Plasma, Catppuccin) NO
|
||||
van aquí: los aplica `arch-setup` en el primer login. chezmoi solo lleva
|
||||
configs de texto versionables.
|
||||
|
||||
[chezmoi]: https://www.chezmoi.io
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"editor.fontFamily": "JetBrainsMono Nerd Font Mono, monospace",
|
||||
"editor.fontSize": 13,
|
||||
"editor.fontLigatures": true,
|
||||
"editor.tabSize": 2,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.minimap.enabled": false,
|
||||
"files.trimTrailingWhitespace": true,
|
||||
"files.insertFinalNewline": true,
|
||||
"terminal.integrated.fontFamily": "JetBrainsMono Nerd Font Mono",
|
||||
"workbench.colorTheme": "Catppuccin Mocha",
|
||||
"workbench.iconTheme": "catppuccin-mocha",
|
||||
"telemetry.telemetryLevel": "off",
|
||||
"git.confirmSync": false
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
# kitty — gestionado por chezmoi
|
||||
font_family JetBrainsMono Nerd Font Mono
|
||||
font_size 12.0
|
||||
cursor_shape beam
|
||||
scrollback_lines 10000
|
||||
enable_audio_bell no
|
||||
confirm_os_window_close 0
|
||||
|
||||
# Catppuccin Mocha
|
||||
foreground #cdd6f4
|
||||
background #1e1e2e
|
||||
selection_foreground #1e1e2e
|
||||
selection_background #f5e0dc
|
||||
cursor #f5e0dc
|
||||
color0 #45475a
|
||||
color1 #f38ba8
|
||||
color2 #a6e3a1
|
||||
color3 #f9e2af
|
||||
color4 #89b4fa
|
||||
color5 #cba6f7
|
||||
color6 #94e2d5
|
||||
color7 #bac2de
|
||||
color8 #585b70
|
||||
color9 #f38ba8
|
||||
color10 #a6e3a1
|
||||
color11 #f9e2af
|
||||
color12 #89b4fa
|
||||
color13 #cba6f7
|
||||
color14 #94e2d5
|
||||
color15 #a6adc8
|
||||
@@ -0,0 +1,26 @@
|
||||
# starship — tema Catppuccin Mocha
|
||||
palette = "catppuccin_mocha"
|
||||
|
||||
format = "$directory$git_branch$git_status$python$rust$nodejs$cmd_duration$character"
|
||||
|
||||
[character]
|
||||
success_symbol = "[➜](green)"
|
||||
error_symbol = "[➜](red)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
style = "blue"
|
||||
|
||||
[git_branch]
|
||||
style = "mauve"
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 2000
|
||||
style = "yellow"
|
||||
|
||||
[palettes.catppuccin_mocha]
|
||||
blue = "#89b4fa"
|
||||
green = "#a6e3a1"
|
||||
red = "#f38ba8"
|
||||
yellow = "#f9e2af"
|
||||
mauve = "#cba6f7"
|
||||
@@ -0,0 +1,15 @@
|
||||
[user]
|
||||
name = {{ .name }}
|
||||
email = {{ .email }}
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[pull]
|
||||
rebase = true
|
||||
[core]
|
||||
editor = nvim
|
||||
pager = bat
|
||||
[alias]
|
||||
st = status -sb
|
||||
lg = log --oneline --graph --decorate
|
||||
[url "https://gitea.josevi.ovh/"]
|
||||
insteadOf = gitea:
|
||||
@@ -0,0 +1,29 @@
|
||||
# ~/.zshrc — gestionado por chezmoi (repo configs)
|
||||
|
||||
# Historia
|
||||
HISTFILE=~/.zsh_history
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
setopt SHARE_HISTORY HIST_IGNORE_DUPS HIST_IGNORE_SPACE
|
||||
|
||||
# Completado
|
||||
autoload -Uz compinit && compinit
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
# Aliases (CLI moderno instalado por arch-setup)
|
||||
alias ls='eza --group-directories-first'
|
||||
alias ll='eza -lah --git'
|
||||
alias cat='bat'
|
||||
alias grep='rg'
|
||||
alias top='btop'
|
||||
alias g='git'
|
||||
# Podman con compat docker
|
||||
alias docker='podman'
|
||||
|
||||
# Herramientas
|
||||
command -v zoxide >/dev/null && eval "$(zoxide init zsh)"
|
||||
command -v fzf >/dev/null && source <(fzf --zsh) 2>/dev/null
|
||||
command -v starship>/dev/null && eval "$(starship init zsh)"
|
||||
|
||||
export EDITOR=nvim
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
@@ -0,0 +1,10 @@
|
||||
# ~/.ssh/config — gestionado por chezmoi (SIN claves, solo hosts)
|
||||
# private_ -> chezmoi lo aplica con permisos 0600.
|
||||
|
||||
Host *
|
||||
AddKeysToAgent yes
|
||||
ServerAliveInterval 60
|
||||
|
||||
Host gitea
|
||||
HostName gitea.josevi.ovh
|
||||
User git
|
||||
Reference in New Issue
Block a user