dot

packages and services management
Log | Files | Refs | README

commit 5226be98dd89d9f06239665d4aae6828700d7b84
parent d934387e7d057ad2036c0b3c634710327d5ac2bf
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 20 May 2017 22:00:26 +0200

Directions.  Layer 13

Diffstat:
Mbin/io | 29++++++++++++++---------------
Mbin/io-search | 3++-
2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/bin/io b/bin/io @@ -6,6 +6,18 @@ mkdir -p "$HOME/.cache/io" touch "$HOME/.abduco/names" +# --- cache -------------------------------------------------------------------- + +nohup find "$HOME" \ + -path "$HOME/.*" -prune -o \ + -path "*/.git/*" -prune -o \ + -path "*/.hg/*" -prune -o \ + -path "*/v" -prune -o \ + -path "${MAIL%/*}/*/*" -prune -o \ + -type d -exec printf '%s/\n' {} + -o \ + -print 2> /dev/null | sort -o "$HOME/.cache/find" & + + # --- selection ---------------------------------------------------------------- selection=`{ @@ -72,24 +84,11 @@ END { command="io-${selection%% *}" path="${selection#* }" - -# --- cache -------------------------------------------------------------------- - -nohup find "$HOME" \ - -path "$HOME/.*" -prune -o \ - -path "*/.git/*" -prune -o \ - -path "*/.hg/*" -prune -o \ - -path "*/v" -prune -o \ - -path "${MAIL%/*}/*/*" -prune -o \ - -type d -exec printf '%s/\n' {} + -o \ - -print 2> /dev/null | sort -o "$HOME/.cache/find" +wait # --- attach ------------------------------------------------------------------- printf '\033[H\033[2J' -[ "$SSH_TTY" ] && e='^\' || e='^Z' - -command -v "$command" && [ "$path" ] && -exec io-abduco $command "$path" +command -v "$command" && [ "$path" ] && exec io-abduco $command "$path" diff --git a/bin/io-search b/bin/io-search @@ -12,7 +12,8 @@ number=. while [ "$number" ] do - IFS=' ' read -r path number content << EOF + +IFS=' ' read -r path number content << EOF `printf '%s\n' "$output" | iomenu -s -h -p search` EOF