From 0452f449864ce97fa57b4e46796409d6534e8243 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 13 Jan 2011 17:58:41 -0500 Subject: speeding up prompt by using faster vcs commands; adding exit code and updated time info to prompt --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 2811ee5..02fb131 100644 --- a/zshrc +++ b/zshrc @@ -41,3 +41,7 @@ fi # run after local because local because user bin should # take absolute priority export PATH=$HOME/bin:$PATH + +function preexec () { + echo "($fg[magenta]`date +%r`$reset_color) $fg[cyan]$3$reset_color" +} -- cgit v1.2.3