about summary refs log tree commit diff
path: root/configs/zsh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-09 18:00:55 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-09 18:00:55 -0800
commit373811b495ac7296332aa078daf6f59964ae94a6 (patch)
treea05b03d303be2fd66dee33dd182bc9dd836654b0 /configs/zsh
parentsystems: add a MoTD (diff)
downloadworld-373811b495ac7296332aa078daf6f59964ae94a6.tar.gz
home-manager: expand zsh configuration
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