From 4ed2320f6780eb4a2728d4be35f624bdb9a6eb6e Mon Sep 17 00:00:00 2001 From: PHO Date: Tue, 1 Oct 2013 12:40:06 +0900 Subject: [PATCH] Auto commit by The Sugar System. --- dot-files/_zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/dot-files/_zshrc b/dot-files/_zshrc index 0479e5e..50e0f91 100644 --- a/dot-files/_zshrc +++ b/dot-files/_zshrc @@ -162,6 +162,7 @@ function percol_select_history() { local selected selected=$("${tac_cmd[@]}" "$HISTFILE" | \ sed 's/^: [0-9]*:[0-9]*;//' | \ + awk 'seen[$0] {next} {seen[$0]++; print}' | \ percol --match-method regex --query "$LBUFFER") if [[ $? -eq 0 ]]; then BUFFER="$selected" -- 2.40.0