2015-01-08 06:53:08 +08:00
INSTALLATION
============
2016-02-17 23:31:52 +08:00
Install `hh` using [distribution ](#distribution-installation ),
2015-05-09 20:44:36 +08:00
from [source code ](#installation-from-source-code ), on [Ubuntu ](#ubuntu ),
2016-01-15 00:19:41 +08:00
[Fedora/RHEL/CentOS/ScientificLinux ](#fedorarhelcentos ), [openSUSE ](#opensuse ), [Debian/Mint ](#debianmint ),
2018-01-19 00:28:49 +08:00
[Gentoo ](#gentoo ), [Arch Linux ](#arch-linux ), [Bash on Ubuntu on Windows (WSL) ](#wsl ), [Cygwin ](#cygwin ) or [Mac OS ](#mac-os ).
2015-01-08 05:36:50 +08:00
UBUNTU
------
2016-10-11 14:51:18 +08:00
Install `hh` on Ubuntu - one-liner:
```bash
sudo add-apt-repository ppa:ultradvorka/ppa & & sudo apt-get update & & sudo apt-get install hh & & hh --show-configuration >> ~/.bashrc
```
... or step by step:
2015-01-08 05:36:50 +08:00
```bash
sudo add-apt-repository ppa:ultradvorka/ppa
sudo apt-get update
sudo apt-get install hh
```
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-01-08 05:36:50 +08:00
2015-04-26 15:27:43 +08:00
2015-05-09 20:37:48 +08:00
FEDORA/RHEL/CENTOS
------------------
2016-02-17 23:31:52 +08:00
Install `hh` on Fedora, RHEL or CentOS:
2015-04-26 15:27:43 +08:00
```bash
2016-02-17 23:31:52 +08:00
sudo dnf|yum install hstr -y
2015-04-26 15:27:43 +08:00
```
2016-02-17 23:31:52 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-04-26 15:27:43 +08:00
2015-01-08 05:36:50 +08:00
2016-01-14 00:53:55 +08:00
openSUSE
--------
For openSUSE Leap 42.1 run the following as root:
```bash
zypper addrepo http://download.opensuse.org/repositories/home:tuw-e184/openSUSE_Leap_42.1/home:tuw-e184.repo
zypper refresh
zypper install hstr
```
2015-01-08 05:36:50 +08:00
INSTALLATION FROM SOURCE CODE
-----------------------------
Clone Git repository:
```bash
git clone https://github.com/dvorka/hstr.git
```
Create build files using:
```bash
cd ./dist & & ./1-dist.sh & & cd ..
```
Install `hh` using:
```bash
./configure & & make & & make install
```
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-01-08 05:36:50 +08:00
2015-01-08 05:49:24 +08:00
DISTRIBUTION INSTALLATION
2015-01-08 05:36:50 +08:00
-------------------------
Download latest distribution from project Releases section:
https://github.com/dvorka/hstr/releases
Expand the archive and install `hh` using:
```bash
./configure & & make & & make install
```
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-01-08 05:36:50 +08:00
DEBIAN/MINT
-----------
Install `hh` on Debian (Wheezy) or Mint (13) by registering the key:
```bash
wget www.clfh.de/frankh.asc
apt-key add frankh.asc
```
adding the repository:
```bash
deb http://www.clfh.de/debian wheezy main
deb-src http://www.clfh.de/debian wheezy main
```
and installing it:
```bash
apt-get update
apt-get install hh
```
2015-01-13 22:24:08 +08:00
Optionally configure `hh` :
2015-01-08 05:36:50 +08:00
```bash
hh --show-configuration >> ~/.bashrc
```
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-01-08 05:36:50 +08:00
2015-08-28 22:36:12 +08:00
GENTOO
------
hstr has been added to Portage, see this [bug ](https://bugs.gentoo.org/show_bug.cgi?id=527122 ).
To install hstr, emerge it like so:
```
emerge app-shells/hstr
```
and you should be all set.
2017-06-04 04:58:43 +08:00
2015-01-08 05:36:50 +08:00
ARCH LINUX
----------
Download latest distribution from project Releases section:
https://github.com/dvorka/hstr/releases
2015-02-06 14:18:52 +08:00
Use [PKGBUILD ](https://wiki.archlinux.org/index.php/PKGBUILD ) in the root of the distribution to build package using `makepkg` :
2015-01-08 05:36:50 +08:00
2015-02-06 14:18:52 +08:00
https://aur.archlinux.org/packages/hstr-git/
2015-01-08 05:36:50 +08:00
Install `hh` .
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2015-01-08 05:36:50 +08:00
MAC OS
------
2015-02-27 15:48:38 +08:00
You can either install `hh` from [Homebrew ](http://brew.sh/ ):
```bash
brew install hh
```
2015-02-28 14:32:13 +08:00
or from the source code as described further in this section. First install MacPorts:
2015-01-08 05:36:50 +08:00
http://www.macports.org
2015-01-13 22:24:08 +08:00
And then install readline and ncurses:
```
port install readline
port install ncurses
```
2015-04-12 09:30:40 +08:00
Build and install (if using Homebrew):
2015-01-08 05:36:50 +08:00
```bash
2015-02-25 04:20:15 +08:00
autoreconf -fvi
./configure CFLAGS=-I$(brew --prefix)/opt/readline/include LDFLAGS=-L$(brew --prefix)/opt/readline/lib
make
2015-01-08 05:36:50 +08:00
```
2017-02-03 05:01:40 +08:00
Alternative if using MacPorts ([macports.com](https://www.macports.org/ports.php?by=name& substr=hstr)/[GitHub](https://github.com/macports/macports-ports/blob/master/shells/hstr/Portfile)):
2015-04-12 09:30:40 +08:00
```bash
autoreconf -fvi
./configure CFLAGS=-I/opt/local/include/ LDFLAGS=-L/opt/local/lib
make
```
2015-01-13 22:24:08 +08:00
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2017-06-04 04:58:43 +08:00
2018-01-19 00:28:49 +08:00
WSL
2017-06-05 12:49:15 +08:00
---
2018-01-19 00:28:49 +08:00
To install `hh` on [Bash on Ubuntu on Windows (WSL) ](https://msdn.microsoft.com/en-us/commandline/wsl/about ) clone Git repository:
2017-06-05 12:49:15 +08:00
```bash
git clone https://github.com/dvorka/hstr.git
```
Create build files using:
```bash
cd ./dist & & ./1-dist.sh & & cd ..
```
Finish installation `hh` using:
```bash
./configure & & make & & make install
```
In order to get autocompletion on Cygwin you must configure `hh` using:
```bash
hh --show-configuration >> ~/.bashrc
```
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).
2017-06-04 04:58:43 +08:00
CYGWIN
------
To install `hh` on [Cygwin ](https://www.cygwin.com ) clone Git repository:
```bash
git clone https://github.com/dvorka/hstr.git
```
Create build files using:
```bash
cd ./dist & & ./1-dist.sh & & cd ..
```
Finish installation `hh` using:
```bash
./configure & & make & & make install
```
In order to get autocompletion on Cygwin you must configure `hh` using:
```bash
hh --show-configuration >> ~/.bashrc
```
Optionally [configure ](CONFIGURATION.md ) `hh` and check its [man page ](README.md#documentation ).