Refactor zshrc for improved readability and update SVG favicon

This commit is contained in:
Philip Henning 2026-05-11 13:14:47 +02:00
parent 4432e8f538
commit ac016529ca
2 changed files with 33 additions and 22 deletions

View file

@ -9,10 +9,6 @@ if [[ -r "${XDG_CACHE_HOME:-{{@@ env['HOME'] @@}}/.cache}/p10k-instant-prompt-${
source "${XDG_CACHE_HOME:-{{@@ env['HOME'] @@}}/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f {{@@ env['HOME'] @@}}/.p10k.zsh ]] || source {{@@ env['HOME'] @@}}/.p10k.zsh
[[ -f {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh ]] && source ~/.config/zsh/p10k.mise.zsh
# If you come from bash you might have to change your $PATH.
# export PATH=${HOME}/bin:/usr/local/bin:$PATH
@ -20,8 +16,8 @@ fi
export ZSH={{@@ env['HOME'] @@}}/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# it'll load a random theme each time that Oh My Zsh is loaded.
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
if [[ ${TERM} == 'linux' ]]; then
ZSH_THEME="agnoster"
else
@ -42,11 +38,16 @@ fi
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment one of the following lines to change Oh My Zsh update behavior.
# zstyle ':omz:update' mode disabled
# zstyle ':omz:update' mode auto
# zstyle ':omz:update' mode reminder
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# zstyle ':omz:update' frequency 13
# Uncomment the following line to limit update output.
zstyle ':omz:update' verbose default
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
@ -117,10 +118,8 @@ plugins=(
uv
vscode
zoxide
zsh-autosuggestions
zsh-navigation-tools
zsh-ssh
zsh-syntax-highlighting
{%@@ if distro == 'macos' @@%} # Mac specifics
brew
iterm2
@ -128,10 +127,10 @@ plugins=(
{%@@ endif @@%}{%@@ if distro == 'arch' @@%} # Archlinux specifics
archlinux
{%@@ endif @@%}
zsh-autosuggestions
zsh-syntax-highlighting
)
autoload -U compinit && compinit
# Source fzf-tab-completions
# source {{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
# zstyle ':completion:*' fzf-search-display true
@ -141,9 +140,17 @@ autoload -U compinit && compinit
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/zsh-completions/src
# A set of custom completions
fpath+={{@@ env['HOME'] @@}}/.oh-my-zsh/custom/plugins/custom-completions
{%@@ if profile == 'ymir' @@%}
zstyle ':completion:*' menu select
fpath+=~/.zfunc
{%@@ endif @@%}
source ${ZSH}/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f {{@@ env['HOME'] @@}}/.p10k.zsh ]] || source {{@@ env['HOME'] @@}}/.p10k.zsh
[[ -f {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh ]] && source {{@@ env['HOME'] @@}}/.config/zsh/p10k.mise.zsh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
@ -202,9 +209,9 @@ alias hosts="uvx git+https://git.s1q.dev/phg/hosts.git"
{%@@ if distro == 'macos' @@%}
# Decide which homebrew installation (x64_86 / arm64) should be used
if [ "$(sysctl -n sysctl.proc_translated)" = "1" ]; then
local brew_path="/usr/local/homebrew/bin"
brew_path="/usr/local/homebrew/bin"
else
local brew_path="/opt/homebrew/bin"
brew_path="/opt/homebrew/bin"
fi
export PATH="${brew_path}:${PATH}"
@ -227,9 +234,3 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
source {{@@ env['HOME'] @@}}/.commonfunc
{%@@ if vw == true @@%}source {{@@ env['HOME'] @@}}/.vwfunc
source {{@@ env['HOME'] @@}}/.vwrc{%@@ endif @@%}
{%@@ if profile == 'ymir' @@%}
autoload -Uz compinit
zstyle ':completion:*' menu select
fpath+=~/.zfunc
{%@@ endif @@%}

10
favicon.svg Normal file
View file

@ -0,0 +1,10 @@
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 185.69 237" enable-background="new 0 0 185.69 237" xml:space="preserve">
<g>
<path fill="#333333" d="M135.96,0h-1.06H16.93C7.58,0,0,7.58,0,16.93v203.14C0,229.42,7.58,237,16.93,237h151.83
c9.35,0,16.93-7.58,16.93-16.93V50.79v-1.06L135.96,0z"/>
<circle fill="#3FA9F5" cx="92.84" cy="118.5" r="25.39"/>
<line fill="#1A1A1A" x1="185.69" y1="50.79" x2="134.9" y2="0"/>
<path fill="#3FA9F5" d="M135.96,32.8c0,9.35,7.58,16.93,16.93,16.93h32.8L135.96,0V32.8z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 600 B