From 4ddeef0bd7aa9434029aa6f2167d2d858e932f26 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 16 Mar 2009 19:03:10 +0100 Subject: [PATCH] Changed the option to remove duplicates from -r to -d. --- selector.1 | 4 ++-- selector.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selector.1 b/selector.1 index c1762c1..f3fadcd 100644 --- a/selector.1 +++ b/selector.1 @@ -40,7 +40,7 @@ inverse the order of the lines remove the numeric prefix from bash history .IP "\fB-z\fP" 10 remove the time prefix from zsh history -.IP "\fB-r\fP" 10 +.IP "\fB-d\fP" 10 remove duplicated lines .IP "\fB-c \fP" 10 select the modline and highlight color numbers @@ -57,7 +57,7 @@ specify the file to search into To use selector to search into your bash history, you can use -.B selector -r -i -b -v -f <(history) +.B selector -d -i -b -v -f <(history) .SH "BUGS" diff --git a/selector.cc b/selector.cc index 668323e..1518120 100644 --- a/selector.cc +++ b/selector.cc @@ -403,7 +403,7 @@ int main(int argc, char **argv) { i++; } - else if(strcmp(argv[i], "-r") == 0) { + else if(strcmp(argv[i], "-d") == 0) { remove_duplicates = 1; i++; } @@ -432,7 +432,7 @@ int main(int argc, char **argv) { << " [-h]" << " [-v]" << " [-m]" - << " [-r]" + << " [-d]" << " [-z]" << " [-i]" << " [-c ]" -- 2.20.1