summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-01-12 14:27:49 +0100
committerRaymaekers Luca <luca@spacehb.net>2025-01-12 14:27:49 +0100
commit3037e98983fa03863fcd8002c561e95dff213f76 (patch)
tree5ec69fd7c4febf54ffe93f12a673a751477f3f5f /config
parent449f969b19e1b6a5e402305f2c968d9ed09dedf7 (diff)
checkpoint
Diffstat (limited to 'config')
-rw-r--r--config/essentials/zsh/.zshrc6
1 files changed, 5 insertions, 1 deletions
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; }