From 0998af9706425c4980271dd70d7fa3011a9da03d Mon Sep 17 00:00:00 2001 From: tokiclover Date: Thu, 25 Sep 2014 22:46:39 +0200 Subject: [PATCH] modules: precompile: fix die() --- modules/firefox-profile/functions/fhp | 2 +- modules/firefox-profile/functions/mktmp | 2 +- modules/firefox-profile/init.zsh | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/firefox-profile/functions/fhp b/modules/firefox-profile/functions/fhp index 50740d2b..894ffa83 100644 --- a/modules/firefox-profile/functions/fhp +++ b/modules/firefox-profile/functions/fhp @@ -10,7 +10,7 @@ function die { local ret=$? - print -P " %F{red}*%f ${(%):-%1x}: $@" >&2 + print -P " %F{red}%1x: %F{yellow}%U%I%u:%f $argv" >&2 return $ret } diff --git a/modules/firefox-profile/functions/mktmp b/modules/firefox-profile/functions/mktmp index ef7dc289..10f24272 100644 --- a/modules/firefox-profile/functions/mktmp +++ b/modules/firefox-profile/functions/mktmp @@ -9,7 +9,7 @@ function die { local ret=$? - print -P " %F{red}*%f ${(%):-%1x}: $@" >&2 + print -P " %F{red}%1x: %F{yellow}%U%I%u:%f $argv" >&2 return $ret } diff --git a/modules/firefox-profile/init.zsh b/modules/firefox-profile/init.zsh index 1be129e4..f760fb70 100644 --- a/modules/firefox-profile/init.zsh +++ b/modules/firefox-profile/init.zsh @@ -8,6 +8,12 @@ # $Version: 2.0 2014/09/25 21:09:26 Exp $ # +function die { + local ret=$? + print -P " %F{red}%1x: %F{yellow}%U%I%u:%f $argv" >&2 + return $ret +} + setopt EXTENDED_GLOB setopt NULL_GLOB