dot

packages and services management
Log | Files | Refs | README

commit 65f8c3aab5b527de26f1432c78279384c7b5eaea
parent 72e1e5e3591ba01d2cf83fdff81ec96b2e7b43f2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 29 Nov 2017 14:30:47 +0100

use ^\ to detach abduco, but ^Z on SSH to avoid clashing

Diffstat:
Mbin/io | 5+++--
Mbin/xdg-open | 4++--
Mdot/bashrc | 11++++++-----
Mpackage/libbearssl/build | 2+-
Muri | 2+-
5 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/bin/io b/bin/io @@ -42,8 +42,9 @@ case $1 in iomenu -p man | sed 's/[^_a-zA-Z0-9].*//')" ;; (a|abduco|'') - id=$(abduco | sed '1 s/^/#/' | iomenu -# -p abduco | cut -f 4) - [ "$SSH_TTY" ] && e='^\' || e='^Z' + id=$(abduco | sed '1 s/^/#/' | tr ! / | iomenu -# -p abduco | + cut -f 4 | tr / !) + [ "$SSH_TTY" ] && e='^Z' || e='^\' exec abduco -e "$e" -a "$id" ;; (u|uri) diff --git a/bin/xdg-open b/bin/xdg-open @@ -11,9 +11,9 @@ aexec() [ -e "$name" ] && name=$(cd "$(dirname "$name")"; pwd)/$(basename "$name") name=$(printf %s "$name" | tr / ! | sed -r 's/.*(.{53})$/\1/') - [ "$SSH_TTY" ] && e='^\' || e='^Z' + [ "$SSH_TTY" ] && e='^Z' || e='^\' printf '\033]0;%s\007' "$*" - ABDUCO=$name exec abduco -A "$name" "$@" + ABDUCO=$name exec abduco -e "$e" -A "$name" "$@" } case $1 in diff --git a/dot/bashrc b/dot/bashrc @@ -5,10 +5,11 @@ PS1='$( )' PS2=' -- ' -alias cl='printf "\033[H\033[2J"' alias blih="blih -u $BLIH" -alias p='p=$(io-ps)' -alias s='git status -s --branch' -alias c='cd "$(find . -maxdepth 5 -name .git -prune -o -type d | iomenu)"' -alias f='f=$(io-find)' +alias c='cd "$(find . -maxdepth 4 -name .git -prune -o -type d | iomenu)"' +alias c='cd "$(find . -maxdepth 4 -name .git -prune -o -type d | iomenu)"' +alias cl='printf "\033[H\033[2J"' +alias f='f=$(io find)' alias l='ls -Alp' +alias o='xdg-open' +alias s='git status -s --branch' diff --git a/package/libbearssl/build b/package/libbearssl/build @@ -1,4 +1,4 @@ -make +case $(uname) in (Linux) make ;; (*BSD) gmake ;; esac mkdir -p "$OPT/bin" "$OPT/lib" "$OPT/include" diff --git a/uri b/uri @@ -3,7 +3,7 @@ gopher://bitreich.org gopher://drkhsh.at gopher://gopher.leveck.us/1/cgi-bin/pg gopher://gopher.raumzeitlabor.org/1 -gopher://gopherpedia.com +gopher://gopherpedia.com/7/lookup gopher://gopherproject.org gopher://jgw.mdns.org/7/.bin-cgi/gophermap.dcgi gopher://josuah.net