From 37f0724d6aea8ea9f6a872101c47979582adf4d3 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Tue, 5 Jun 2018 17:50:34 -0700 Subject: [PATCH] Print deleted bookmark in j --- zsh/j.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/j.sh b/zsh/j.sh index 6bc3557..2d348ba 100644 --- a/zsh/j.sh +++ b/zsh/j.sh @@ -13,7 +13,9 @@ function _j_add() { } function _j_delete() { local name=$1; - grep -Ev "^${name}\|" "$STORE" | sponge "$STORE" + local regexp="^${name}\|" + grep -E "$regexp" "$STORE" + grep -Ev "$regexp" "$STORE" | sponge "$STORE" } function _j_jump() {