xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit ddc47ae0fc90544c912b549efb1b65933c9261df

Fixed #33 by setting blacklist size.
Author: Martin Dvorak
Author date (UTC): 2014-01-10 08:25
Committer name: Martin Dvorak
Committer date (UTC): 2014-01-10 08:25
Parent(s): 3aac7359c978c5171766116589e8580d1c302900
Signing key:
Tree: e8a1d16a64e30bc26d9ba0b41e18a36c9b4cd52d
File Lines added Lines deleted
src/hstr_history.c 2 1
File src/hstr_history.c changed (mode: 100644) (index 9390796..7e3edb8)
... ... typedef struct {
21 21
22 22 static HistoryItems *prioritizedHistory; static HistoryItems *prioritizedHistory;
23 23 static bool dirty; static bool dirty;
24 #define BLACKLIST_SIZE 5
24 25 static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"}; static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"};
25 26
26 27 #ifdef DEBUG_RADIX #ifdef DEBUG_RADIX
 
... ... HistoryItems *get_prioritized_history()
74 75 HashSet blacklist; HashSet blacklist;
75 76 int i; int i;
76 77 hashset_init(&blacklist); hashset_init(&blacklist);
77 for(i=0; i<4; i++) {
78 for(i=0; i<BLACKLIST_SIZE; i++) {
78 79 hashset_add(&blacklist, commandBlacklist[i]); hashset_add(&blacklist, commandBlacklist[i]);
79 80 } }
80 81
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master