summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-12 10:37:05 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-12 10:37:05 +0100
commit21d19830698e79cc46f4222ff51d985c362e9686 (patch)
tree4be2dddfd6f51d0ee75dc3f3ad2c3b54995bfc57 /etc/rc
parent0067981191b7742536be35fa96a526d61b2b0cca (diff)
Use function for status messages
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc5
1 files changed, 5 insertions, 0 deletions
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