From 96cd574530b812fa632e9408ae1db472c4262de1 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 4 Feb 2021 09:02:34 -0600 Subject: recognize alacritty as a terminal that supports setting the title and fall back cleanly if zsh pre* functions are not set --- zsh/functions.zsh-overrides | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zsh/functions.zsh-overrides') diff --git a/zsh/functions.zsh-overrides b/zsh/functions.zsh-overrides index 9826007..8b233e5 100644 --- a/zsh/functions.zsh-overrides +++ b/zsh/functions.zsh-overrides @@ -1,8 +1,8 @@ preexec () { - term_preexec $* - theme_preexec $* + type term_preexec &> /dev/null && term_preexec $* + type theme_preexec &> /dev/null && theme_preexec $* } precmd () { - term_precmd + type term_precmd &> /dev/null && term_precmd } -- cgit v1.2.3