From 373811b495ac7296332aa078daf6f59964ae94a6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 9 Feb 2022 18:00:55 -0800 Subject: home-manager: expand zsh configuration --- configs/zsh/init.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 configs/zsh/init.zsh (limited to 'configs/zsh') 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 -- cgit 1.4.1