Update 2023-01-21 13:55 OpenBSD/amd64
This commit is contained in:
parent
b95c23f90a
commit
c6152a1420
14
.bin/portinfo
Executable file
14
.bin/portinfo
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd /usr/ports/$1
|
||||||
|
|
||||||
|
make show="COMMENT FULLPKGNAME MAINTAINER HOMEPAGE" \
|
||||||
|
| tr -s " " \
|
||||||
|
| awk 'NR == 1 { print "COMMENT: "$0 } \
|
||||||
|
NR == 2 { print "DISTNAME: "$0 } \
|
||||||
|
NR == 3 { print "MAINTAINER: "$0 } \
|
||||||
|
NR == 4 { print "HOMEPAGE: "$0 }'
|
||||||
|
echo
|
||||||
|
echo DESCRIPTION:
|
||||||
|
cat pkg/DESCR*
|
||||||
|
echo
|
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 {}'
|
||||||
|
|
2
.kshrc
2
.kshrc
@ -138,6 +138,8 @@ alias toot-sh-post="toot post -u sh@bsd.network -e vim"
|
|||||||
alias toot-uug-post="toot post -u uugrn@chaos.social -e vim"
|
alias toot-uug-post="toot post -u uugrn@chaos.social -e vim"
|
||||||
alias toot-sh-reply="toot post -r $1 -u sh@bsd.network -e vim"
|
alias toot-sh-reply="toot post -r $1 -u sh@bsd.network -e vim"
|
||||||
alias toot-uug-reply="toot post -r $1 -u uugrn@chaos.social -e vim"
|
alias toot-uug-reply="toot post -r $1 -u uugrn@chaos.social -e vim"
|
||||||
|
alias toot-sh-tl="toot timeline -c 1 -u sh@bsd.network"
|
||||||
|
alias toot-uug-tl="toot timeline -c 1 -u uugrn@chaos.social"
|
||||||
|
|
||||||
# mupdf
|
# mupdf
|
||||||
alias mupdf="mupdf-gl -XJ"
|
alias mupdf="mupdf-gl -XJ"
|
||||||
|
Loading…
Reference in New Issue
Block a user