From f45d83fd4828e837608a6d77a9814ae6f4507e7b Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Wed, 23 Mar 2022 19:52:52 +0100 Subject: [PATCH] Disable cowfortune in yakuake --- zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index ed0e10e..cfe9b4a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -293,6 +293,7 @@ pj() { pushd "$(j -e $@)" } -if [[ $+commands[cowsay] && $+commands[fortune] && ! $ASCIINEMA_REC && -z "$TMUX" ]]; then +term_name=$(basename $(ps -p $(ps -p $$ -o ppid=) -o args=)) +if [[ "$term_name" != "yakuake" && $+commands[cowsay] && $+commands[fortune] && ! $ASCIINEMA_REC && -z "$TMUX" ]]; then cowfortune fi -- 2.54.0