Skip to content

nsanmartin/ahre

Repository files navigation

Ahre

A hypertext reference www navigator or text web browser for linux.

Website

ahre web page

Other text browsers:

External dependencies

Git submodules:

Build instructions

Lexbor installation

checkout v3.0.0 and follow INSTALL.md in lexbor repo. But basically:

git clone https://github.com/lexbor/lexbor
cd lexbor
git checkout v3.0.0
cmake .
make
sudo make install

You may need also to:

sudo echo /usr/local/lib > /etc/ls.so.conf.d/lexbor.conf
sudo ldconfig

if liblexbor.so.2 not found when running ahre.

System dependant Dependencies

Termux

pkg install libandroid-wordexp
pkg install libiconv
export LDFLAGS="-landroid-wordexp -liconv"

Debian/Ubuntu

sudo apt install libcurl4-openssl-dev

or

sudo apt install libcurl4-gnutls-dev

Clone Repo

git clone
git submodule update --init

(to update: git submodule update --recursive --remote)

Build

mkdir build
make ahre

tcc build

tcc does not support regex and wordexp so currently it won't work.

To build using tcc the NO_REGEX flag must be passed:

CC=tcc CFLAGS=-DAHRE_REGEX_DISABLED make

To build with no quickjs (and hence no js): CFLAGS=-DAHRE_QUICKJS_DISABLED make

Run

./build/ahre -d 'q=ahre' lite.duckduckgo.com/lite

Search something in duckduckgo

ddg  () {
    local IFS="+"
    ahre -d q="$1" lite.duckduckgo.com/lite
}

ddg something

Usage:

See ./doc/quick-reference-guide.md

Packages

 
 
 

Contributors