From bb2f21a19d7707d61c018f3563d8dae004b015e8 Mon Sep 17 00:00:00 2001 From: wake Date: Wed, 15 Apr 2026 09:26:16 +0200 Subject: [PATCH] add ghostty shell integration for emacs --- init-zsh.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init-zsh.sh b/init-zsh.sh index 3816222..70ad444 100755 --- a/init-zsh.sh +++ b/init-zsh.sh @@ -2,11 +2,18 @@ git clone --recursive https://github.com/changs/slimzsh.git ~/.slimzsh +git clone https://github.com/dakra/ghostel.git /tmp/ghostel +cp /tmp/ghostel/etc/ghostel.zsh ~/.ghostel.zsh +rm -fr /tmp/ghostel + cat < $HOME/.zshrc HISTSIZE=10000 SAVEHIST=10000 [[ \$TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return [[ \$TERM =~ "eterm" ]] && INSIDE_EMACS=yes +# zsh (~/.zshrc) +[[ "$INSIDE_EMACS" = 'ghostel' ]] && \ + source "$HOME/.ghostel.zsh" zstyle ':prompt:pure:user:root' color red zstyle ':prompt:pure:host' color cyan source "$HOME/.slimzsh/slim.zsh"