From 21d19830698e79cc46f4222ff51d985c362e9686 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 12 Mar 2009 10:37:05 +0100 Subject: Use function for status messages --- etc/rc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/rc') diff --git a/etc/rc b/etc/rc index f9fae06..7ff9256 100644 --- a/etc/rc +++ b/etc/rc @@ -14,6 +14,10 @@ if [[ $system == linux ]] { [[ -f /etc/debian_version ]] && distro=debian } +function zrc_status { + echo -n "\r\e[2K${info}--${reset} $*" +} + # include the actual config source $ZDIR/options source $ZDIR/colors @@ -41,6 +45,7 @@ umask 077 chpwd # cleanup +echo -n "\r\e[2K" unalias 'linux:' unalias 'openbsd:' unfunction xexport -- cgit v1.2.3