fix .zshrc: imgcat (會被iTerm2佔走)

This commit is contained in:
Yuan Chiu 2025-04-23 18:00:07 +08:00
parent 6fe0359cab
commit aff4e160fa

View File

@ -174,6 +174,7 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh [[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh
# 圖片顯示 # 圖片顯示
if ! type imgcat &>/dev/null && command -v magick &>/dev/null; then
imgcat() { imgcat() {
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "❌ 請指定圖片檔案例如imgcat ~/Pictures/foo.png" echo "❌ 請指定圖片檔案例如imgcat ~/Pictures/foo.png"
@ -182,5 +183,6 @@ imgcat() {
magick "$1" -geometry 800x480 sixel:- magick "$1" -geometry 800x480 sixel:-
} }
fi
zinit light mass8326/zsh-chezmoi zinit light mass8326/zsh-chezmoi