From: Francois Fleuret Date: Mon, 16 Mar 2009 18:03:10 +0000 (+0100) Subject: Changed the option to remove duplicates from -r to -d. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=4ddeef0bd7aa9434029aa6f2167d2d858e932f26;p=selector.git Changed the option to remove duplicates from -r to -d. --- 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 ]"