From: PHO Date: Tue, 1 Oct 2013 03:40:06 +0000 (+0900) Subject: Auto commit by The Sugar System. X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=4ed2320f6780eb4a2728d4be35f624bdb9a6eb6e;p=sugar.git Auto commit by The Sugar System. --- 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"