This commit is contained in:
2026-06-27 16:41:35 -04:00
parent 440664c233
commit 538860bfcb
14 changed files with 71 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ _fonts_stamp="${XDG_STATE_HOME:-$HOME/.local/state}/fira-code-fonts"
_fonts_dir="$HOME/.local/share/fonts/FiraCode"
if ! fc-list 2>/dev/null | grep -qi 'fira code'; then
if [[ -f "$_fonts_stamp" ]] && compgen -G "$_fonts_dir/*.ttf" >/dev/null; then
if [[ -f "$_fonts_stamp" ]] && ls "$_fonts_dir"/*.ttf &>/dev/null; then
fc-cache -f "$HOME/.local/share/fonts" 2>/dev/null
elif command -v dnf &>/dev/null; then
if sudo dnf install -y fira-code-fonts &>/dev/null; then
+7 -1
View File
@@ -1,2 +1,8 @@
# Ruff completion
command -v ruff >/dev/null && eval "$(ruff generate-shell-completion bash 2>/dev/null)"
if command -v ruff >/dev/null; then
if [[ -n ${ZSH_VERSION:-} ]]; then
eval "$(ruff generate-shell-completion zsh 2>/dev/null)"
else
eval "$(ruff generate-shell-completion bash 2>/dev/null)"
fi
fi
+1 -1
View File
@@ -1,6 +1,6 @@
# VS Code extension install helper
vscode-ext-install() {
bash "${HOME}/dotfiles/vscode-server/install-vscode-extensions.sh" "$@"
bash "${HOME}/.dotfiles/vscode-server/install-vscode-extensions.sh" "$@"
}
alias vscode-ext-list='vscode-ext-install --list'
+4
View File
@@ -18,6 +18,10 @@ indent_size = 2
indent_style = space
indent_size = 2
[*.zsh]
indent_style = space
indent_size = 2
[*.bats]
indent_style = space
indent_size = 2
@@ -94,4 +94,5 @@
"__pycache__",
".grok"
],
"chat.titleBar.signIn.enabled": false,
}
+36
View File
@@ -0,0 +1,36 @@
# .zshrc
[[ -f "$HOME/.var/app/com.visualstudio.code/data/../bin/env" ]] && . "$HOME/.var/app/com.visualstudio.code/data/../bin/env"
[[ -f "$HOME/.local/bin/env" ]] && . "$HOME/.local/bin/env"
export TIME_STYLE="long-iso"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
if [[ ":$PATH:" != *":${HOME}/.local/bin:"* ]]; then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Konsole-specific (optional)
export TERM=xterm-256color
# User specific aliases and functions
if [[ -d ~/.zshrc.d ]]; then
for rc in ~/.zshrc.d/*(N); do
[[ -f "$rc" ]] && source "$rc"
done
fi
unset rc
# >>> grok installer >>>
export PATH="$HOME/.grok/bin:$PATH"
fpath=("$HOME/.grok/completions/zsh" $fpath)
# <<< grok installer <<<
# If not running interactively, don't do anything
[[ -o interactive ]] || return
autoload -Uz compinit
compinit
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/alias.bash
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/apt.bash
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/fonts.bash
+14
View File
@@ -0,0 +1,14 @@
# Git + colorful prompt
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=(precmd_vcs_info)
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:git:*' formats ' (%b%u%c)'
zstyle ':vcs_info:git:*' actionformats ' (%b%u%c)'
zstyle ':vcs_info:git:*' stagedstr ' +'
zstyle ':vcs_info:git:*' unstagedstr ' *'
setopt prompt_subst
PROMPT='%B%F{38;5;46m}%n@%m%b%f %F{38;5;51m}%~%f%F{90m}${vcs_info_msg_0_}%f $ '
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/mango.bash
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/ruff.bash
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/vscode.bash
+1
View File
@@ -0,0 +1 @@
../../bash/.bashrc.d/wsl.bash