dot

packages and services management
Log | Files | Refs | README

commit 089a4bd45c62c58d4df21c37175f7bbec78a6f1b
parent 8481a8f7ad86f81f22060a0f929f719e42de4ac1
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Mon, 15 May 2017 18:45:05 +0200

bin/io with var/url/*

Diffstat:
Mbin/io | 6+++---
Mbin/io-search | 4+---
Dbuild/scron/url | 1-
3 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/bin/io b/bin/io @@ -23,8 +23,8 @@ $0 ~ MAIL { mailv[mailc++] = $0; } -$0 ~ ".git/$" || ($0 ~ "/src/[^/]*/$" && $0 !~ "/src/.*/src/") { - sub(".git/$", ""); +$0 ~ "\.git/$" || ($0 ~ "/src/[^/]*/$" && $0 !~ "/src/.*/src/") { + sub("\.git/$", ""); searchv[searchc++] = $0; } @@ -61,7 +61,7 @@ END { } ' "$CACHE/find" printf '# %s\n' url - cat "$ETC/url" + cat "$HOME"/var/url/* "$ETC/url" } | iomenu -p io -s -h | cut -c 3-` command="io-${selection%% *}" diff --git a/bin/io-search b/bin/io-search @@ -12,8 +12,6 @@ EOF [ "$path" ] || exit 1 -[ "$SSH_TTY" ] && e='^\' || e='^Z' path="${path#\# }" -name="$(printf %s "$path" | tr '/' '!')" -ABDUCO="$name" exec abduco -e "$e" -A "$name" less +"$number" "$path" +exec less -M +"$number" "$path" diff --git a/build/scron/url b/build/scron/url @@ -1 +0,0 @@ -http://dl.2f30.org/releases/scron-0.4.tar.gz