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 cfbf25d65b6d6ff55e3a2ebb52a5a06126d105dc

Ubuntu package can be build on a clean system now.
Author: Martin Dvorak
Author date (UTC): 2013-12-25 22:56
Committer name: Martin Dvorak
Committer date (UTC): 2013-12-25 22:56
Parent(s): 139022295ced0aadb69ae040ea7c2a3a55f8e483
Signing key:
Tree: 8eb4a51d32178db88e3bbed8db1b29b714dba910
File Lines added Lines deleted
bin/deb-build.sh 4 11
debian/control 5 4
src/hstr_history.c 0 4
src/include/hstr_history.h 2 0
src/include/radixsort.h 7 0
src/radixsort.c 0 6
File bin/deb-build.sh copied from file bin/deb.sh (similarity 51%) (mode: 100755) (index 5aa5df0..dc2e3ca)
1 1 #!/bin/bash #!/bin/bash
2 2
3 rm -vf *.*~
4
3 5 # copy hstr/ source code to a work directory and run this script to create DEB package # copy hstr/ source code to a work directory and run this script to create DEB package
4 mv -vf ../debian ../..
5 ./dist.sh
6 cd ../..
7 mv hstr hh-0.7
8 tar zcf hh-0.7.tgz hh-0.7
9 bzr dh-make hh 0.7 hh-0.7.tgz
10 cd hh
11 rm -rvf debian
12 cp -vrf ../debian .
13 bzr commit -m "Initial commit of Debian packaging."
6 cd ..
7 bzr commit -m "Sync."
14 8 bzr builddeb -- -us -uc bzr builddeb -- -us -uc
15
16 9 bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc
17 10
18 11 # eof # eof
File debian/control changed (mode: 100644) (index 8c0d281..0656df0)
1 1 Source: hh Source: hh
2 Section: admin
3 Priority: extra
2 Section: universe/admin
3 Priority: optional
4 4 Maintainer: Martin Dvorak <martin.dvorak@mindforger.com> Maintainer: Martin Dvorak <martin.dvorak@mindforger.com>
5 Build-Depends: debhelper (>= 8.0.0), autotools-dev
5 Build-Depends: debhelper (>= 8.0.0), autotools-dev, libreadline-dev, libncurses5-dev
6 6 Standards-Version: 3.9.4 Standards-Version: 3.9.4
7 7 Homepage: https://github.com/dvorka/hstr Homepage: https://github.com/dvorka/hstr
8 8 Vcs-Git: https://github.com/dvorka/hstr.git Vcs-Git: https://github.com/dvorka/hstr.git
 
... ... Vcs-Browser: https://github.com/dvorka/hstr
10 10
11 11 Package: hh Package: hh
12 12 Architecture: any Architecture: any
13 Depends: ${shlibs:Depends}, ${misc:Depends}, libreadline5
13 Depends: ${shlibs:Depends}, ${misc:Depends}
14 14 Description: Suggest box like shell history completion Description: Suggest box like shell history completion
15 15 A command line utility that brings improved shell command completion A command line utility that brings improved shell command completion
16 16 from the history. It aims to make completion easier and faster than Ctrl-R. from the history. It aims to make completion easier and faster than Ctrl-R.
17 Tag: implemented-in::c++, interface::commandline, role::program
File src/hstr_history.c changed (mode: 100644) (index 22bb1e4..f472cc7)
8 8 */ */
9 9
10 10 #include "include/hstr_history.h" #include "include/hstr_history.h"
11 #include "include/hashset.h"
12 #include "include/radixsort.h"
13
14 #include "include/hstr_utils.h"
15 11
16 12 #define NDEBUG #define NDEBUG
17 13 #include <assert.h> #include <assert.h>
File src/include/hstr_history.h changed (mode: 100644) (index 00b8a1b..a836823)
18 18 #include <unistd.h> #include <unistd.h>
19 19 #include <stdbool.h> #include <stdbool.h>
20 20 #include "hstr_utils.h" #include "hstr_utils.h"
21 #include "hashset.h"
22 #include "radixsort.h"
21 23
22 24 #define ENV_VAR_USER "USER" #define ENV_VAR_USER "USER"
23 25 #define ENV_VAR_HOME "HOME" #define ENV_VAR_HOME "HOME"
File src/include/radixsort.h changed (mode: 100644) (index a9196df..8be8172)
10 10 #ifndef RADIXSORT_H_ #ifndef RADIXSORT_H_
11 11 #define RADIXSORT_H_ #define RADIXSORT_H_
12 12
13 #include <stdlib.h>
14 #include <stdio.h>
15 #include <math.h>
16 #include <string.h>
17 #include <stddef.h>
18 #include "hstr_utils.h"
19
13 20 #define SLOT_SIZE 1000 #define SLOT_SIZE 1000
14 21
15 22 typedef struct radixitem { typedef struct radixitem {
File src/radixsort.c changed (mode: 100644) (index e5cee2a..78f6554)
8 8 */ */
9 9
10 10 #include "include/radixsort.h" #include "include/radixsort.h"
11 #include "include/hstr_utils.h"
12 #include <stdlib.h>
13 #include <stdio.h>
14 #include <math.h>
15 #include <string.h>
16 #include <stddef.h>
17 11
18 12 #define GET_TOP_INDEX(KEY) KEY/SLOT_SIZE #define GET_TOP_INDEX(KEY) KEY/SLOT_SIZE
19 13 #define GET_LOW_INDEX(KEY) KEY%SLOT_SIZE #define GET_LOW_INDEX(KEY) KEY%SLOT_SIZE
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