Update 2023-02-22 08:31 OpenBSD/amd64

This commit is contained in:
c0dev0id
2023-02-22 08:31:38 +01:00
parent 1d3ee78382
commit 75fab8053a
85 changed files with 3073 additions and 18 deletions

18
.bin/dev-dirs Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
cd /usr/ports
[ ! -z "$1" ] && EXTRA="-q $1"
_ports=$(echo "SELECT PkgPath from Paths;" \
| sqlite3 /usr/local/share/sqlports \
| sort -u)
_list=$(find /usr/ports/mystuff/*/* /usr/src/*/* /usr/xenocara/*/* -type d -maxdepth 0)
echo "$_ports" "$_list" "/usr/src" "/usr/ports" "/usr/www" "/usr/xenocara" \
| grep -v "/CVS" \
| while IFS= read -r l; do echo "${#l} $((++n)) $l"; done \
| sort -n \
| cut -d" " -f3- \
| fzf $EXTRA -e -i -0 -1 +s --preview "tree {1}"