From b2a92ebe6a82624580dc3580406a1d067388082a Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Thu, 30 Oct 2014 13:56:32 -0700 Subject: [PATCH 1/4] For some reason the find command would fail to find ... --- lib/scripting | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/scripting b/lib/scripting index 9038031..e75f220 100644 --- a/lib/scripting +++ b/lib/scripting @@ -110,7 +110,8 @@ alias sourceif=...sourceif # Backwards compatibility. # XXX This FIFO filename technique does not work on OSX #source <(find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} +) # Use this hack for now: - find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ + #find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ + find $d -type f -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ source /tmp/$$ rm /tmp/$$ From 7390d03b1c4ad1bae0ded95b364af276eb8502e2 Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Sat, 20 Feb 2016 14:34:55 -0800 Subject: [PATCH 2/4] Adding a dots command - ... just messes with my ohmyzsh stuff too much --- bin/dots | 1 + 1 file changed, 1 insertion(+) create mode 120000 bin/dots diff --git a/bin/dots b/bin/dots new file mode 120000 index 0000000..22781e8 --- /dev/null +++ b/bin/dots @@ -0,0 +1 @@ +./... \ No newline at end of file From 51ab8051303f3ee4f7eae4e8f89b1342dbfe35dd Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Fri, 22 Apr 2016 21:52:20 -0700 Subject: [PATCH 3/4] going with the hack? --- lib/scripting | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/scripting b/lib/scripting index e75f220..7813094 100644 --- a/lib/scripting +++ b/lib/scripting @@ -110,8 +110,8 @@ alias sourceif=...sourceif # Backwards compatibility. # XXX This FIFO filename technique does not work on OSX #source <(find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} +) # Use this hack for now: - #find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ - find $d -type f -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ + find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ + #find $d -type f -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ source /tmp/$$ rm /tmp/$$ From d201eb39ccd4673e29e3dd1ef1cfaeb63241cf2d Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Wed, 16 Nov 2016 16:29:05 -0800 Subject: [PATCH 4/4] Fixing warnings/errors --- lib/scripting | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/scripting b/lib/scripting index e75f220..31b8a5f 100644 --- a/lib/scripting +++ b/lib/scripting @@ -110,8 +110,9 @@ alias sourceif=...sourceif # Backwards compatibility. # XXX This FIFO filename technique does not work on OSX #source <(find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} +) # Use this hack for now: - #find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ - find $d -type f -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ + (find $d/* -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$) 2>/dev/null + [ $? -eq 0 ] || return + #find $d -type f -prune \! -type d \! -name '.*.sw?' -exec cat {} + > /tmp/$$ source /tmp/$$ rm /tmp/$$