dot

packages and services management
Log | Files | Refs | README

commit 00b197c14cf0b4dfda53e9bd30d44545d44b1e3f
parent 8cafc2d733246b12b4055aa04bc3d04da710dbd3
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 14 Dec 2017 17:23:43 +0100

less insane io script

Diffstat:
Mbin/io | 11+++--------
Mbin/mblaze-filter | 5+++--
2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/bin/io b/bin/io @@ -2,19 +2,14 @@ export LC_COLLATE=C -mkdir -p "$HOME/.cache/find" -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 -o "$cache" -done +[ $# -eq 0 ] && set -- "${IO#$HOME/}" name=$({ xdg-open printf -- '#----------------------------------------' printf -- '----------------------------------------\n' - find "$HOME/.cache/find" "$HOME/etc/lib/uri" -type f -exec cat {} + + find "$HOME/$@" '(' -name .git -o -name CVS ')' -prune -o -print | sort + cat "$HOME/etc/lib/uri" } | iomenu -# | cut -f 2) clear diff --git a/bin/mblaze-filter b/bin/mblaze-filter @@ -3,13 +3,14 @@ minc "$MAILDIR/INBOX" -while read -r dir t +while read -r dir test do mkdir -p "$MAILDIR/$dir/cur" mkdir -p "$MAILDIR/$dir/new" mkdir -p "$MAILDIR/$dir/tmp" printf '%-25s' "$dir" - mlist "$MAILDIR/INBOX" | mpick -t "$t" | xargs -rI % mv % "$MAILDIR/$dir/new" + mlist "$MAILDIR/INBOX" | mpick -t "$test" | + xargs -rI % mv % "$MAILDIR/$dir/new" done << 'EOF' 2>&1 actux.eu.org "List-Id" ~~~ "*@actux.eu.org*" amazon.com "From" ~~~ "*@amazon.*"