From cf17c6c946c2f3c56b70289fda5649a80763a8a7 Mon Sep 17 00:00:00 2001 From: Ryota Ikezawa Date: Mon, 9 Mar 2026 11:02:28 +0900 Subject: [PATCH] fix(zsh): use alias for gs to avoid Ghostscript collision zsh-abbr is turbo-loaded via zinit, so the gs abbreviation may not be registered before PATH lookup resolves /usr/bin/gs (Ghostscript). Move gs back to an alias which loads synchronously. --- dot_config/zsh/split/aliases.zsh | 4 ++++ dot_config/zsh/split/plugins.zsh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dot_config/zsh/split/aliases.zsh b/dot_config/zsh/split/aliases.zsh index 5790256..6444317 100644 --- a/dot_config/zsh/split/aliases.zsh +++ b/dot_config/zsh/split/aliases.zsh @@ -8,6 +8,10 @@ alias la='eza -la --icons --git' alias lt='eza --tree --icons --level=2' alias cat='bat --paging=never' +# Git: alias instead of abbr to override /usr/bin/gs (Ghostscript) +# abbr is turbo-loaded and may lose the race against PATH lookup +alias gs='git status -sb' + # Safe defaults alias rm='rm -i' alias cp='cp -i' diff --git a/dot_config/zsh/split/plugins.zsh b/dot_config/zsh/split/plugins.zsh index 107ec8c..995e716 100644 --- a/dot_config/zsh/split/plugins.zsh +++ b/dot_config/zsh/split/plugins.zsh @@ -54,7 +54,7 @@ _zinit_setup_abbr() { abbr -S -qq gl='git log --oneline -20' abbr -S -qq gp='git push' abbr -S -qq gpl='git pull' - abbr -S -qq gs='git status -sb' + abbr -S -qq gst='git status' abbr -S -qq gsw='git switch' abbr -S -qq gswc='git switch -c'