]> arthur.barton.de Git - ax-zsh.git/commitdiff
std_env: Set TIMEFMT and WATCHFMT variables
authorAlexander Barton <alex@barton.de>
Sat, 8 Jul 2017 22:54:17 +0000 (00:54 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 8 Jul 2017 22:54:17 +0000 (00:54 +0200)
default_plugins/std_env/std_env.zshrc [new file with mode: 0644]

diff --git a/default_plugins/std_env/std_env.zshrc b/default_plugins/std_env/std_env.zshrc
new file mode 100644 (file)
index 0000000..937e8df
--- /dev/null
@@ -0,0 +1,7 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# std_env: Setup standard environment variables
+
+# Note: colors aren't available in the "zprofile" stage, so we have to set
+# these variables here (and therefore exporting makes no sense) ...
+TIMEFMT="%J - $fg[green]%U$reset_color user; $fg[red]%S$reset_color system; $fg_bold[white]%*E$reset_color total ($fg[yellow]%P$reset_color cpu)."
+WATCHFMT="$fg_bold[white]%n$reset_color has $fg_bold[white]%a$reset_color from %M (%l)."