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 7d86d52741c26b0054f6dcf80b450cf092b5e57f

Fixing Launchpad build - curses > ncursesw includes.
Author: Martin Dvorak
Author date (UTC): 2014-09-12 19:46
Committer name: Martin Dvorak
Committer date (UTC): 2014-09-12 19:46
Parent(s): c7aa0a2ee3a3323456064c80a3eb3ba4a5d6dc08
Signing key:
Tree: f439fcdfe292d043a25c2725f177d74520f83f3e
File Lines added Lines deleted
configure.ac 6 6
debian/control 1 1
dist/github-env.sh 1 1
dist/ubuntu-make-all-distros.sh 4 5
src/hstr.c 1 1
src/include/hstr_curses.h 1 1
tests/src/test_curses_keyb.c 1 1
File configure.ac changed (mode: 100644) (index 022b1bc..abb215e)
4 4
5 5 AC_PREREQ([2.69]) AC_PREREQ([2.69])
6 6
7 AC_INIT(hh, 0.90, martin.dvorak@mindforger.com)
8 AM_INIT_AUTOMAKE(hh, 0.90)
7 AC_INIT(hh, 1.13, martin.dvorak@mindforger.com)
8 AM_INIT_AUTOMAKE(hh, 1.13)
9 9 AC_OUTPUT(Makefile src/Makefile man/Makefile) AC_OUTPUT(Makefile src/Makefile man/Makefile)
10 10
11 11 # Checks for src dir existence. # Checks for src dir existence.
 
... ... AC_CONFIG_SRCDIR([src/hstr.c])
17 17 AC_PROG_CC AC_PROG_CC
18 18
19 19 # Checks for libraries. # Checks for libraries.
20 AC_CHECK_LIB(ncursesw, initscr, [], [AC_MSG_ERROR([Could not find Curses library])])
21 AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find Math library])])
22 AC_CHECK_LIB(readline, using_history, [], [AC_MSG_ERROR([Could not find Readline library])])
20 AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
21 AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
22 AC_CHECK_LIB(readline, using_history, [], [AC_MSG_ERROR([Could not find readline library])])
23 23
24 24 # Checks for header files. # Checks for header files.
25 25 AC_CHECK_HEADER(assert.h) AC_CHECK_HEADER(assert.h)
26 26 AC_CHECK_HEADER(ctype.h) AC_CHECK_HEADER(ctype.h)
27 AC_CHECK_HEADER(curses.h)
27 AC_CHECK_HEADER(ncursesw/curses.h)
28 28 AC_CHECK_HEADER(fcntl.h) AC_CHECK_HEADER(fcntl.h)
29 29 AC_CHECK_HEADER(math.h) AC_CHECK_HEADER(math.h)
30 30 AC_CHECK_HEADER(readline/history.h) AC_CHECK_HEADER(readline/history.h)
File debian/control changed (mode: 100644) (index 5a440e9..caf806b)
... ... Source: hh
2 2 Section: utils Section: utils
3 3 Priority: optional Priority: optional
4 4 Maintainer: Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Maintainer: Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com>
5 Build-Depends: debhelper (>= 8.0.0), autotools-dev, libreadline-dev, libncurses5-dev
5 Build-Depends: debhelper (>= 8.0.0), autotools-dev, libreadline-dev, libncursesw5-dev
6 6 Standards-Version: 3.9.5 Standards-Version: 3.9.5
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
File dist/github-env.sh changed (mode: 100755) (index 59091ed..1e5533b)
... ... export NOW=`date +%Y-%m-%d--%H-%M-%S`
4 4 export GH_RELEASE_DIR=~/p/hstr/release export GH_RELEASE_DIR=~/p/hstr/release
5 5 export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW} export GH_DISTRO_DIR=${GH_RELEASE_DIR}/release-${NOW}
6 6
7 export HHVERSION="1.0.8"
7 export HHVERSION="1.14"
8 8 export GH_MSG="GitHub release automation." export GH_MSG="GitHub release automation."
9 9
10 10 # eof # eof
File dist/ubuntu-make-all-distros.sh changed (mode: 100755) (index e729a74..3bf5af1)
1 1 #!/bin/bash #!/bin/bash
2 2
3 export HHBZRMSG="Favorites stabilization: deletion, reordering and highlighting."
4 export VERSION=1.11.
3 export HHBZRMSG="Internatialization and support for transparent terminals."
4 export VERSION=1.13.
5 5 export MINOR=1 export MINOR=1
6 6
7 for DISTRO in precise quantal saucy trusty
7 # precise quantal saucy trusty
8 for DISTRO in precise trusty
8 9 do do
9 10
10 MINOR=`expr $MINOR + 1`
11
12 11 ./ubuntu-make-distro.sh ${DISTRO} ${VERSION}${MINOR} "${HHBZRMSG}" ./ubuntu-make-distro.sh ${DISTRO} ${VERSION}${MINOR} "${HHBZRMSG}"
13 12
14 13 done done
File src/hstr.c changed (mode: 100644) (index 63bef05..a4cdafd)
9 9
10 10 #define _GNU_SOURCE #define _GNU_SOURCE
11 11
12 #include <curses.h>
12 #include <ncursesw/curses.h>
13 13 #include <getopt.h> #include <getopt.h>
14 14 #include <regex.h> #include <regex.h>
15 15 #include <locale.h> #include <locale.h>
File src/include/hstr_curses.h changed (mode: 100644) (index b98eb7b..f90081a)
10 10 #ifndef _HSTR_CURSES_H #ifndef _HSTR_CURSES_H
11 11 #define _HSTR_CURSES_H #define _HSTR_CURSES_H
12 12
13 #include <curses.h>
13 #include <ncursesw/curses.h>
14 14
15 15 #define color_attr_on(C) if(terminal_has_colors()) { attron(C); } #define color_attr_on(C) if(terminal_has_colors()) { attron(C); }
16 16 #define color_attr_off(C) if(terminal_has_colors()) { attroff(C); } #define color_attr_off(C) if(terminal_has_colors()) { attroff(C); }
File tests/src/test_curses_keyb.c changed (mode: 100644) (index 933976e..39d126a)
7 7 ============================================================================ ============================================================================
8 8 */ */
9 9
10 #include <curses.h>
10 #include <ncursesw/curses.h>
11 11 #include <stdlib.h> #include <stdlib.h>
12 12
13 13 int main(int argc, char *argv[]) int main(int argc, char *argv[])
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