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 139022295ced0aadb69ae040ea7c2a3a55f8e483

Adding DEB scripts and configs
Author: Martin Dvorak
Author date (UTC): 2013-12-25 19:20
Committer name: Martin Dvorak
Committer date (UTC): 2013-12-25 19:20
Parent(s): 9ad1b946c1bb524201901d8b7b45d8e325f1f6c9
Signing key:
Tree: 1863f12f006e45425edbdcfab797108c50eb6d4e
File Lines added Lines deleted
Makefile.am 0 1
README.md 10 8
bin/clean.sh 2 0
bin/deb.sh 18 0
bin/dist.sh 7 1
debian/changelog 5 0
debian/compat 1 0
debian/control 16 0
debian/copyright 18 0
debian/docs 1 0
debian/rules 13 0
debian/source/format 1 0
src/Makefile.am 1 1
src/hstr.c 1 1
File Makefile.am changed (mode: 100644) (index fa824bc..5fbb269)
1 # hh make
2 1 AUTOMAKE_OPTIONS = foreign AUTOMAKE_OPTIONS = foreign
3 2 SUBDIRS = src man SUBDIRS = src man
File README.md changed (mode: 100644) (index 1300859..afa1a75)
... ... DOWNLOAD
18 18 https://github.com/dvorka/hstr/releases https://github.com/dvorka/hstr/releases
19 19
20 20
21 BUILD
22 ------------
23 * install from the source distribution:
24
25 `./configure && make && make install`
26
27
21 28 INSTALLATION INSTALLATION
22 29 ------------ ------------
23 * add `hh` to `$PATH`
30 * make sure `hh` is in `${PATH}`
24 31 * add * add
25 32
26 33 `shopt -s histappend` `shopt -s histappend`
 
... ... INSTALLATION
33 40
34 41 `bind '"\C-r": "\C-k\C-uhh\C-j"'` `bind '"\C-r": "\C-k\C-uhh\C-j"'`
35 42
36 or F12:
37
38 `bind '"\e[24~":"\C-k\C-uhh\C-j"'`
39
40 43 or Ctrl-F12: or Ctrl-F12:
41 44
42 45 `bind '"\e[24;5~":"\C-k\C-uhh\C-j"'` `bind '"\e[24;5~":"\C-k\C-uhh\C-j"'`
43 46
44 47 To determine the character sequence emitted by a pressed key in terminal, To determine the character sequence emitted by a pressed key in terminal,
45 type CTRL-v and then press the key. For example, F12 gives `^[[24~`.
46 Replace the `^[` with `\e`. To clear the line first, add `\C-k \C-u` in
47 front of the actual command. Check your current bindings using:
48 type CTRL-v and then press the key. To clear the line first, add `\C-k \C-u`
49 in front of the actual command. Check your current bindings using:
48 50
49 51 `bind -S` `bind -S`
50 52
File bin/clean.sh changed (mode: 100755) (index 7273d94..3002dfa)
1 1 #!/bin/bash #!/bin/bash
2 2
3 rm -vrf ../.git ../.settings ../Debug ../Release ../.cproject ../.project ../.gitignore
4
3 5 rm -vf *.*~ ../*.*~ ../src/*.*~ rm -vf *.*~ ../*.*~ ../src/*.*~
4 6 rm -rvf ../atom5te.cache rm -rvf ../atom5te.cache
5 7 rm -vf ../man/Makefile ../man/Makefile.in rm -vf ../man/Makefile ../man/Makefile.in
File bin/deb.sh added (mode: 100755) (index 0000000..5aa5df0)
1 #!/bin/bash
2
3 # 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."
14 bzr builddeb -- -us -uc
15
16 bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc
17
18 # eof
File bin/dist.sh changed (mode: 100755) (index b0babd8..101b926)
4 4
5 5 cd .. cd ..
6 6 aclocal aclocal
7 automake --add-missing
7 automake --force-missing --add-missing
8 8 autoconf autoconf
9
10 rm -vf depcomp install-sh missing
11 cp -vf /usr/share/automake-1.11/depcomp .
12 cp -vf /usr/share/automake-1.11/install-sh .
13 cp -vf /usr/share/automake-1.11/missing .
14
9 15 cd bin cd bin
10 16
11 17 # eof # eof
File debian/changelog added (mode: 100644) (index 0000000..529c1d2)
1 hh (0.7-0ubuntu1) raring; urgency=low
2
3 * Initial release.
4
5 -- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100
File debian/compat added (mode: 100644) (index 0000000..45a4fb7)
1 8
File debian/control added (mode: 100644) (index 0000000..8c0d281)
1 Source: hh
2 Section: admin
3 Priority: extra
4 Maintainer: Martin Dvorak <martin.dvorak@mindforger.com>
5 Build-Depends: debhelper (>= 8.0.0), autotools-dev
6 Standards-Version: 3.9.4
7 Homepage: https://github.com/dvorka/hstr
8 Vcs-Git: https://github.com/dvorka/hstr.git
9 Vcs-Browser: https://github.com/dvorka/hstr
10
11 Package: hh
12 Architecture: any
13 Depends: ${shlibs:Depends}, ${misc:Depends}, libreadline5
14 Description: Suggest box like shell history completion
15 A command line utility that brings improved shell command completion
16 from the history. It aims to make completion easier and faster than Ctrl-R.
File debian/copyright added (mode: 100644) (index 0000000..cb72e41)
1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2 Upstream-Name: hh
3 Source: https://github.com/dvorka/hstr
4
5 Files: debian/*
6 Copyright: 2013 Martin Dvorak <martin.dvorak@mindforger.com>
7 License: Apache-2.0
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11 .
12 http://www.apache.org/licenses/LICENSE-2.0
13 .
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License
File debian/docs added (mode: 100644) (index 0000000..b43bf86)
1 README.md
File debian/rules added (mode: 100755) (index 0000000..312e24d)
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13 dh $@ --with autotools-dev
File debian/source/format added (mode: 100644) (index 0000000..163aaf8)
1 3.0 (quilt)
File src/Makefile.am changed (mode: 100644) (index 84eaf53..594f9e6)
1 1 # http://mij.oltrelinux.com/devel/autoconf-automake/ # http://mij.oltrelinux.com/devel/autoconf-automake/
2 2 AM_CFLAGS = --pedantic -Wall -std=c99 -O2 AM_CFLAGS = --pedantic -Wall -std=c99 -O2
3 AM_LDFLAGS = -lncurses -lreadline -lm
3 AM_LDFLAGS =
4 4
5 5 # bin_ installs to bin; hh_ is the binary name # bin_ installs to bin; hh_ is the binary name
6 6 bin_PROGRAMS = hh bin_PROGRAMS = hh
File src/hstr.c changed (mode: 100644) (index f8c2a43..7d685a8)
... ... char *selection_loop(HistoryItems *history) {
249 249 int selectionCursorPosition=SELECTION_CURSOR_IN_PROMPT; int selectionCursorPosition=SELECTION_CURSOR_IN_PROMPT;
250 250 int previousSelectionCursorPosition=SELECTION_CURSOR_IN_PROMPT; int previousSelectionCursorPosition=SELECTION_CURSOR_IN_PROMPT;
251 251
252 int y = 1, c, maxHistoryItems, cursorX, cursorY, deleteOccurences;
252 int y = 1, c, maxHistoryItems, cursorX=0, cursorY=0, deleteOccurences;
253 253 bool done = FALSE; bool done = FALSE;
254 254 char prefix[SELECTION_PREFIX_MAX_LNG]=""; char prefix[SELECTION_PREFIX_MAX_LNG]="";
255 255 char *result="", *msg, *delete; char *result="", *msg, *delete;
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