Update 2023-01-21 13:55 OpenBSD/amd64
This commit is contained in:
26
.bin/portjump
Executable file
26
.bin/portjump
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z $1 ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
_mystuff=$(find /usr/ports/mystuff \
|
||||
-mindepth 2 \
|
||||
-maxdepth 2 \
|
||||
-type d \
|
||||
-not \
|
||||
-path "*/.git*" \
|
||||
-not \
|
||||
-path "*/CVS*" \
|
||||
| sed 's|/usr/ports/||')
|
||||
|
||||
_ports=$(echo "SELECT PkgPath from Paths;" \
|
||||
| sqlite3 /usr/local/share/sqlports \
|
||||
| sort -u)
|
||||
|
||||
printf '%s\n%s\n' "$_mystuff" "$_ports" \
|
||||
| fzf -e -i -0 -1 +s \
|
||||
--query "$1" \
|
||||
--preview='portinfo {}'
|
||||
|
||||
Reference in New Issue
Block a user