]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Tue, 1 Oct 2013 03:40:06 +0000 (12:40 +0900)
committerPHO <pho@cielonegro.org>
Tue, 1 Oct 2013 03:40:06 +0000 (12:40 +0900)
dot-files/_zshrc

index 0479e5e4b98152adb86323554b2f83ddb328987e..50e0f91bb389949a564cdd4125c015e8aee5f337 100644 (file)
@@ -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"