Try to eliminate false-positives from patches alias.
authorSteve Youngs <steve@steveyoungs.com>
Sat, 23 Jan 2021 07:45:08 +0000 (17:45 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Sat, 23 Jan 2021 07:45:08 +0000 (17:45 +1000)
It should also now be possible to use this to copy the patches with

  'cp -v $(patches) .'

* etc/pkgusr/handy_funcs: Improve 'patches' alias.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/handy_funcs

index a1dbb68..2158024 100644 (file)
@@ -247,7 +247,7 @@ alias ebp='vi -a ${HOME}/{build,.project}'
 # alias ebp='nano -w ${HOME}/{build,.project}'
 alias deps='grep --colour "Deps: " ${HOME}/.project'
 alias listp='pinky -l $(whoami)|less'
-alias patches='find ${SLACKPKG} -iname $(whoami)\*|grep -E "\.(diff|patch)"'
+alias patches='find ${SLACKPKG}/**/$(whoami)|grep -E "(diff|patch)"'
 
 H-pkg()
 {