dot

packages and services management
Log | Files | Refs | README

commit 600f0b265312131d028ff13db1e64693e7174b9a
parent 92d55be6123e30e16f4e23d937a1b24645578f36
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Wed,  5 Jul 2017 11:26:59 +0200

added bin utilities and use ul(1) rather than sed(1) for man

Diffstat:
Abin/dofiles | 4++++
Mbin/io-man | 2+-
Dbin/manpager | 3---
Abin/search | 1+
4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/dofiles b/bin/dofiles @@ -0,0 +1,4 @@ +path=$1 name=$2 +shift 2 + +find "$path" -name "$name" -exec "$@" {} + diff --git a/bin/io-man b/bin/io-man @@ -1,3 +1,3 @@ # just open a man page -mandoc -a "$1" +mandoc -a "$1" | ul | less -R diff --git a/bin/manpager b/bin/manpager @@ -1,3 +0,0 @@ -tmp=`mktemp` -[ $# -gt 0 ] && sed 's/.//g' "$1" > "$tmp" -exec $EDITOR "$tmp" < /dev/tty diff --git a/bin/search b/bin/search @@ -0,0 +1 @@ +find "$1" -type f -path "*$2*" -o -exec grep -le "$2" {} +