fix .zshrc: imgcat (會被iTerm2佔走)
This commit is contained in:
parent
6fe0359cab
commit
aff4e160fa
16
dot_zshrc
16
dot_zshrc
@ -174,13 +174,15 @@ 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
|
||||||
|
|
||||||
# 圖片顯示
|
# 圖片顯示
|
||||||
imgcat() {
|
if ! type imgcat &>/dev/null && command -v magick &>/dev/null; then
|
||||||
if [[ -z "$1" ]]; then
|
imgcat() {
|
||||||
echo "❌ 請指定圖片檔案,例如:imgcat ~/Pictures/foo.png"
|
if [[ -z "$1" ]]; then
|
||||||
return 1
|
echo "❌ 請指定圖片檔案,例如:imgcat ~/Pictures/foo.png"
|
||||||
fi
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
magick "$1" -geometry 800x480 sixel:-
|
magick "$1" -geometry 800x480 sixel:-
|
||||||
}
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
zinit light mass8326/zsh-chezmoi
|
zinit light mass8326/zsh-chezmoi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user