From 3fccc586b685567926b6a85bd7754e3a2a97ae93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 10 May 2020 23:17:24 -0300 Subject: [PATCH] Add ate terminal as submodule Is compiled at run time using TinyCC. --- .gitmodules | 3 +++ ate/.local/bin/ate | 3 +++ ate/.local/bin/ate-config | 3 +++ ate/.local/share/ate | 1 + distros/void.sh | 15 ++++++++++++--- 5 files changed, 22 insertions(+), 3 deletions(-) create mode 100755 ate/.local/bin/ate create mode 100755 ate/.local/bin/ate-config create mode 160000 ate/.local/share/ate diff --git a/.gitmodules b/.gitmodules index 552208f..02359f4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "nvim/.config/nvim/pack/plugins/start/vim-airline"] path = nvim/.config/nvim/pack/plugins/start/vim-airline url = https://github.com/vim-airline/vim-airline.git +[submodule "ate/.local/share/ate"] + path = ate/.local/share/ate + url = git@github.com:ericonr/ate.git diff --git a/ate/.local/bin/ate b/ate/.local/bin/ate new file mode 100755 index 0000000..a64366d --- /dev/null +++ b/ate/.local/bin/ate @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec tcc $(pkg-config --cflags --libs gtk+-3.0 vte-2.91) -run ~/.local/share/ate/main.c "$@" diff --git a/ate/.local/bin/ate-config b/ate/.local/bin/ate-config new file mode 100755 index 0000000..bb4f561 --- /dev/null +++ b/ate/.local/bin/ate-config @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec ${EDITOR:-nvim} ~/.local/share/ate/config.default.h diff --git a/ate/.local/share/ate b/ate/.local/share/ate new file mode 160000 index 0000000..49846b7 --- /dev/null +++ b/ate/.local/share/ate @@ -0,0 +1 @@ +Subproject commit 49846b79606a3b69f3ca5c98d4776ef34a76dcf8 diff --git a/distros/void.sh b/distros/void.sh index 06c7283..d71de02 100755 --- a/distros/void.sh +++ b/distros/void.sh @@ -9,8 +9,7 @@ # install script for Void based systems -function base () { - xbps-install \ +function base () { xbps-install \ binutils \ cryptsetup \ chrony \ @@ -252,8 +251,18 @@ function kicad_desc () { echo "Install KiCad EDA and its resource packages." } +function ate () { + xbps-install \ + tcc \ + gtk+3-devel \ + vte3-devel +} +function ate_desc () { + echo "Install the packages necessary to use ate compiled by TCC." +} + MOST_PACKAGES="base term intel fonts themes wm audio media dev qt5 mozzila pdf" -COMPLEMENT_PACKAGES="refind emacs office flatpak embedded kicad" +COMPLEMENT_PACKAGES="refind emacs office flatpak embedded kicad ate" function install_most () { for target in $MOST_PACKAGES