about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--configs/zsh/init.zsh12
1 files changed, 12 insertions, 0 deletions
diff --git a/configs/zsh/init.zsh b/configs/zsh/init.zsh
new file mode 100644
index 0000000..2f791d7
--- /dev/null
+++ b/configs/zsh/init.zsh
@@ -0,0 +1,12 @@
+# Print timing statistics for everything which takes longer than 5 seconds of
+# user + system time ('sleep 6' does not work because of 0% user/system time!).
+REPORTTIME=5
+
+PROMPT='%K{cyan}%F{black}%m%k%f %~%F{red}${vcs_info_msg_0_}%f %# '
+
+# For tramp (emacs).
+if [ "$TERM" = "dumb" ]; then
+  unset PROMPT
+  PS1='$ '
+  unsetopt zle
+fi