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 f94df24dd183f25f0a6377c404055cf7bd5e06e1

Fixed #22 by non NULL keys.
Author: Martin Dvorak
Author date (UTC): 2013-12-23 20:34
Committer name: Martin Dvorak
Committer date (UTC): 2013-12-23 20:34
Parent(s): 692bf121b8f14f445ba2421bf34c76dbd7ff9706
Signing key:
Tree: abade0821d8ee0bbb2dab102e3b788996bb42d93
File Lines added Lines deleted
src/hashset.c 1 1
src/hstr_history.c 1 1
File src/hashset.c changed (mode: 100644) (index d5c0891..8f80fec)
... ... int hashset_put(HashSet * hs, const char *key, void *value) {
69 69 } }
70 70
71 71 int hashset_add(HashSet * hs, const char *key) { int hashset_add(HashSet * hs, const char *key) {
72 return hashset_put(hs, key, NULL);
72 return hashset_put(hs, key, "nil");
73 73 } }
74 74
75 75 int hashset_size(const HashSet * hs) { int hashset_size(const HashSet * hs) {
File src/hstr_history.c changed (mode: 100644) (index b3b6978..22bb1e4)
... ... typedef struct {
23 23
24 24 static HistoryItems *prioritizedHistory; static HistoryItems *prioritizedHistory;
25 25 static bool dirty; static bool dirty;
26 static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh"};
26 static const char *commandBlacklist[] = {"ls", "pwd", "cd", "hh", "mc"};
27 27
28 28 #ifdef DEBUG_RADIX #ifdef DEBUG_RADIX
29 29 #define DEBUG_RADIXSORT() radixsort_stat(&rs); exit(0) #define DEBUG_RADIXSORT() radixsort_stat(&rs); exit(0)
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