From 3037e98983fa03863fcd8002c561e95dff213f76 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 12 Jan 2025 14:27:49 +0100 Subject: checkpoint --- config/essentials/zsh/.zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/essentials/zsh') diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 3a75873..8b94cfe 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -110,7 +110,11 @@ bindkey -M menuselect '^xu' undo # Undo ## window title hooks add-zsh-hook -Uz preexec () { print -n "\e]0;$1\a\033[0m"; } -add-zsh-hook -Uz precmd set_wt (){ print -Pn "\e]0;%n@%m on %~\a"; } +set_wt() { print -Pn "\e]0;%n@%m on %~\a"; } +add_newline() { printf '\n'; } +precmd_functions+=(add_newline) +precmd_functions+=(set_wt) +# add-zsh-hook -Uz precmd add_newline() { printf '\n'; } ## automatic ls after cd # add-zsh-hook -Uz chpwd (){ [ "$PWD" = "$HOME" ] || ls -A; } -- cgit v1.2.3