From 366601d0140a5e62a7044c1662a58b1cc8d16a62 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sat, 9 Mar 2019 10:40:50 -0800 Subject: [PATCH] Change to conditional zle reset-prompt --- zsh/plugins/fedit.zsh | 6 ++---- zsh/plugins/fless.zsh | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/zsh/plugins/fedit.zsh b/zsh/plugins/fedit.zsh index 5fe47b2..1aa938e 100644 --- a/zsh/plugins/fedit.zsh +++ b/zsh/plugins/fedit.zsh @@ -1,13 +1,11 @@ # Fuzzy find a file and then edit it _fedit() { - /usr/bin/fedit - zle reset-prompt + /usr/bin/fedit && zle reset-prompt } _etcedit() { - /usr/bin/fedit --etc - zle reset-prompt + /usr/bin/fedit --etc && zle reset-prompt } zle -N _fedit diff --git a/zsh/plugins/fless.zsh b/zsh/plugins/fless.zsh index 0ae4ff3..132b571 100644 --- a/zsh/plugins/fless.zsh +++ b/zsh/plugins/fless.zsh @@ -1,7 +1,6 @@ # Fuzzy-find a file and open it in less fless() { - /usr/bin/fless - zle reset-prompt + /usr/bin/fless && zle reset-prompt } zle -N fless