vimport: set the tab limit to 100 and filter dupplicate
authorSofian Brabez <sbz@6dev.net>
Sun, 21 Oct 2018 15:16:36 +0000 (17:16 +0200)
committersbz <sbz@6dev.net>
Sun, 21 Oct 2018 15:16:36 +0000 (17:16 +0200)
vimport

diff --git a/vimport b/vimport
index 1189957ea599943b3c77bfd0cc3833d448154e13..4dc53f9df287e8e7198ee301a6f4b79cb7cbd174 100755 (executable)
--- a/vimport
+++ b/vimport
@@ -3,4 +3,4 @@
 : ${PORTSDIR:="/usr/ports"}
 
 cd ${PORTSDIR}
-vim -p $(cd ${PORTSDIR}; psearch -m ${USER}|cut -d' ' -f1|xargs -I {} echo {}/Makefile)
+vim -c "set tabpagemax=100" -p $(cd ${PORTSDIR}; psearch -m sbz | sort -u | cut -d' ' -f1 | sed 's#.*#&/Makefile#')