linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

commit 6674d45ca188a4f6a7e762d7a646b4671d599b0f
parent 69e435d1b3b7113f48514980b797e7eaaa82ad5c
Author: Jul <jul@9o.is>
Date:   Mon, 28 Jul 2025 12:13:01 +0800

add fzy

Diffstat:
M.gitmodules | 4++++
Apkg/fzy/build | 16++++++++++++++++
Apkg/fzy/config.h | 28++++++++++++++++++++++++++++
Apkg/fzy/repo | 1+
4 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -15,3 +15,7 @@ path = pkg/abduco/repo url = https://github.com/martanne/abduco.git ignore = all +[submodule "fzy"] + path = pkg/fzy/repo + url = https://github.com/jhawthorn/fzy.git + ignore = all diff --git a/pkg/fzy/build b/pkg/fzy/build @@ -0,0 +1,16 @@ +#!/bin/sh +set -euo pipefail + +repodir="$srcdir/repo" + +rm -rf "$outdir" +cp "$srcdir/config.h" "$repodir" + +make -C "$repodir" + +if [ "$local_install" == "true" ]; then + sudo make -C "$repodir" PREFIX=/usr install +else + export DESTDIR="$outdir" + make -C "$repodir" PREFIX=/usr install +fi diff --git a/pkg/fzy/config.h b/pkg/fzy/config.h @@ -0,0 +1,28 @@ +#ifdef __cplusplus +extern "C" { +#endif + +#define TTY_COLOR_HIGHLIGHT TTY_COLOR_BLUE + +#define SCORE_GAP_LEADING -0.005 +#define SCORE_GAP_TRAILING -0.005 +#define SCORE_GAP_INNER -0.01 +#define SCORE_MATCH_CONSECUTIVE 1.0 +#define SCORE_MATCH_SLASH 0.9 +#define SCORE_MATCH_WORD 0.8 +#define SCORE_MATCH_CAPITAL 0.7 +#define SCORE_MATCH_DOT 0.6 + +/* Time (in ms) to wait for additional bytes of an escape sequence */ +#define KEYTIMEOUT 25 + +#define DEFAULT_TTY "/dev/tty" +#define DEFAULT_PROMPT "> " +#define DEFAULT_NUM_LINES 50 +#define DEFAULT_WORKERS 0 +#define DEFAULT_SHOW_INFO 0 + +#ifdef __cplusplus +} +#endif + diff --git a/pkg/fzy/repo b/pkg/fzy/repo @@ -0,0 +1 @@ +Subproject commit 0b97373ad61c064aa568ea0dee530aa80f9f72ab