From 5a14865703141bcf489778960e615a9bfe2608bf Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 8 Feb 2016 20:10:56 +0100 Subject: add some contrib scripts. --- contrib/lrls | 8 ++++++++ contrib/lrocate | 5 +++++ 2 files changed, 13 insertions(+) create mode 100755 contrib/lrls create mode 100755 contrib/lrocate (limited to 'contrib') diff --git a/contrib/lrls b/contrib/lrls new file mode 100755 index 0000000..fc4b149 --- /dev/null +++ b/contrib/lrls @@ -0,0 +1,8 @@ +#!/bin/sh +# lrls - lr with GNU ls style output + +color= +[ -t 1 ] && color=-GG + +lr $color -A1s -t '!type == d || depth > 0' "$@" |git column --mode=dense --pad=2 + diff --git a/contrib/lrocate b/contrib/lrocate new file mode 100755 index 0000000..2186918 --- /dev/null +++ b/contrib/lrocate @@ -0,0 +1,5 @@ +#!/bin/sh +# lrocate [PATTERN] [LR OPTIONS...] - call lr(1) on locate(1) results + +pattern=$1; shift +locate -0 "$pattern" | xe -0 -N0 lr -lG "$@" -- cgit 1.4.1