summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/completion3
-rw-r--r--etc/rc5
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/completion b/etc/completion
index 11e6e2b..4408052 100644
--- a/etc/completion
+++ b/etc/completion
@@ -50,9 +50,8 @@ zstyle -e ':completion:*' hosts 'reply=(${(k)hosts})'
if [[ -r $compdump ]] {
compinit -C -d $compdump
} else {
- echo -n "${info}--${reset} Creating completion cache"
+ zrc_status "Creating completion cache"
compinit -d $compdump
- echo -n "\r\e[2K"
}
compdef _hosts sshmount
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