aboutsummaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-01-13 17:58:41 -0500
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-01-13 17:58:41 -0500
commit0452f449864ce97fa57b4e46796409d6534e8243 (patch)
tree330607dcc7ee51213106680a86abd2376237517c /zshrc
parent3f84b01bf8d91765037a33b6aa83246c6060dc66 (diff)
speeding up prompt by using faster vcs commands; adding exit code and updated time info to prompt
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc4
1 files changed, 4 insertions, 0 deletions
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"
+}