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 3d625902475fbcdff89b86c75d793286009ddb3c

Adding doc/ dir.
Author: Martin Dvorak
Author date (UTC): 2014-04-27 11:31
Committer name: Martin Dvorak
Committer date (UTC): 2014-04-27 11:31
Parent(s): 492a366d0f7432a0038147c178823bd1ea08ab86
Signing key:
Tree: 7d22467103c65500bd51eecf52655b0f692c6027
File Lines added Lines deleted
doc/INSTALL.md 114 0
src/hstr.c 1 1
File doc/INSTALL.md added (mode: 100644) (index 0000000..38b14f7)
1 UBUNTU INSTALLATION
2 -------------------
3 * install `hh` on Ubuntu (12.04LTS/12.10/13.10/14.04LTS):
4 ```bash
5 sudo add-apt-repository ppa:ultradvorka/ppa
6 sudo apt-get update
7 sudo apt-get install hh
8 ```
9
10 * optionally configure `hh`:
11 ```bash
12 hh --show-configuration >> ~/.bashrc
13 ```
14
15 INSTALLATION FROM SOURCE CODE
16 -----------------------------
17 * Clone Git repository:
18 ```bash
19 git clone https://github.com/dvorka/hstr.git
20 ```
21
22 * create build files using:
23 ```bash
24 cd ./dist && ./1-dist.sh && cd ..
25 ```
26
27 * install `hh` using:
28 ```bash
29 ./configure && make && make install
30 ```
31
32 * optionally configure `hh`:
33 ```bash
34 hh --show-configuration >> ~/.bashrc
35 ```
36
37
38 DISTRIBUTION INSTALLATION
39 -------------------------
40 * download latest distribution from project Releases section:
41
42 https://github.com/dvorka/hstr/releases
43
44 * expand the archive and install `hh` using:
45 ```bash
46 ./configure && make && make install
47 ```
48
49 * optionally configure `hh`:
50 ```bash
51 hh --show-configuration >> ~/.bashrc
52 ```
53
54
55 DEBIAN/MINT INSTALLATION
56 -------------------
57 * install `hh` on Debian (Wheezy) or Mint (13) by registering the key:
58 ```bash
59 wget www.clfh.de/frankh.asc
60 apt-key add frankh.asc
61 ```
62 adding the repository:
63 ```bash
64 deb http://www.clfh.de/debian wheezy main
65 deb-src http://www.clfh.de/debian wheezy main
66 ```
67 and installing it:
68 ```bash
69 apt-get update
70 apt-get install hh
71 ```
72
73 * optionally configure `hh`:
74 ```bash
75 hh --show-configuration >> ~/.bashrc
76 ```
77
78
79 ARCH LINUX
80 ----------
81 * download latest distribution from project Releases section:
82
83 https://github.com/dvorka/hstr/releases
84
85 * use PKGBUILD in the root of the distribution to build package using `makepkg`:
86
87 https://wiki.archlinux.org/index.php/PKGBUILD
88
89 * install `hh`
90 * optionally configure `hh`:
91 ```bash
92 hh --show-configuration >> ~/.bashrc
93 ```
94
95 MAC OS
96 ------
97 * install MacPorts:
98
99 http://www.macports.org
100
101 * set the environment:
102 ```bash
103 env CFLAGS="-I/opt/local/include -I/usr/include" LDFLAGS="-L/opt/local/lib -L/usr/lib" ./configure
104 ```
105
106 * finish the installation
107 ```bash
108 make && make install
109 ```
110
111 * optionally configure `hh`:
112 ```bash
113 hh --show-configuration >> ~/.bashrc
114 ```
File src/hstr.c changed (mode: 100644) (index 4664360..275ee52)
... ... void hstr_init(Hstr *hstr)
181 181 hstr->selectionRegexpMatch=NULL; hstr->selectionRegexpMatch=NULL;
182 182 hstr->selectionSize=0; hstr->selectionSize=0;
183 183
184 hstr->historyMatch=HH_MATCH_REGEXP;
184 hstr->historyMatch=HH_MATCH_EXACT;
185 185 hstr->historyView=HH_VIEW_RANKING; hstr->historyView=HH_VIEW_RANKING;
186 186 hstr->caseSensitive=HH_CASE_INSENSITIVE; hstr->caseSensitive=HH_CASE_INSENSITIVE;
187 187
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