dot

packages and services management
Log | Files | Refs | README

commit 3bbfb8acc098290a6858954c1076e6b4a643566f
parent 863e6b02620825465b50419bc939d3b409c72e4c
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 28 Nov 2017 22:42:55 +0100

also find in .*

Diffstat:
Mbin/io | 11++++++-----
Mbin/xdg-open | 2+-
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/bin/io b/bin/io @@ -5,13 +5,14 @@ export LC_COLLATE=C case $1 in (f|find) mkdir -p "$HOME/.cache/find" - for dir in "$HOME"/* + find "$HOME" -maxdepth 1 -mindepth 1 | while IFS='' read -r dir do cache=$HOME/.cache/find/${dir##*/} [ "$dir" -nt "$cache" ] && - find "$dir" -name .git -prune -o -print | sort > "$cache" + find "$dir" -name .git -prune -o -print | sort -o "$cache" done - exec xdg-open "$(cat "$HOME/.cache/find"/* | iomenu -p find)" + exec xdg-open "$(find "$HOME/.cache/find" -exec cat {} + | + iomenu -p find)" ;; (m|mblaze) cd "$MAIL/.." @@ -40,7 +41,7 @@ case $1 in sed -r -e "s/ - /$spc - /" -e 's/(.{25}[^ ]* ) * - /\1- /' | iomenu -p man | sed 's/[^_a-zA-Z0-9].*//')" ;; -(a|abduco) +(a|abduco|'') id=$(abduco | sed '1 s/^/#/' | iomenu -# -p abduco | cut -f 4) [ "$SSH_TTY" ] && e='^\' || e='^Z' exec abduco -e "$e" -a "$id" @@ -50,7 +51,7 @@ case $1 in ;; (*) printf 'usage: io [f[ind] | m[blaze] | n[etstat] | p[s] | s[rc] path\n' - printf ' u[ri] | c[ache] | m[an] | a[bduco]]\n' + printf ' u[ri] | m[an] | a[bduco]]\n' ;; esac diff --git a/bin/xdg-open b/bin/xdg-open @@ -12,7 +12,7 @@ aexec() name=$(cd "$(dirname "$name")"; pwd)/$(basename "$name") name=$(printf %s "$name" | tr / !) [ "$SSH_TTY" ] && e='^\' || e='^Z' - printf '\033]0;%s\007' "$name" + printf '\033]0;%s\007' "$*" ABDUCO=$name exec abduco -A "$name" "$@" }