From b944d201236747512612775a28385f57c669c6f0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 24 Jul 2024 08:01:01 +0100 Subject: [PATCH] zsh: run `zle reset-prompt` in each widget Instead of having to press the Enter key after running a widget, use `zle reset-prompt` to reset the prompt. --- lib/shared/modules/zsh.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/shared/modules/zsh.nix b/lib/shared/modules/zsh.nix index 0069003..0c1d627 100644 --- a/lib/shared/modules/zsh.nix +++ b/lib/shared/modules/zsh.nix @@ -44,24 +44,28 @@ clear-ls-all() { clear ls -al + zle reset-prompt } zle -N clear-ls-all clear-git-status() { clear - git status -sb . + git status + zle reset-prompt } zle -N clear-git-status clear-tree-2() { clear tree -L 2 + zle reset-prompt } zle -N clear-tree-2 clear-tree-3() { clear tree -L 3 + zle reset-prompt } zle -N clear-tree-3