Update 2023-05-09 18:43 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-05-09 18:43:46 +02:00
parent bb60f14b03
commit 1fa23a730f
5 changed files with 25 additions and 13 deletions

View File

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

5
.kshrc
View File

@ -127,7 +127,8 @@ alias exrc="vim ~/.exrc"
alias ebay="chrome https://www.ebay-kleinanzeigen.de/m-nachrichten.html &"
alias sbl="chrome https://scottsbasslessons.com &"
alias remake="make clean=all; make"
alias remake="make clean=all && make"
alias reinstall="make clean=all && make && make reinstall"
# remind
alias rem="clear; remind -c+cu4 -wt ~/.reminders"
@ -274,6 +275,8 @@ alias discord-me="firefox https://discord.com/channels/@me"
alias discord-immortals="firefox https://discord.com/channels/991041843871502366/1000826654974812160"
alias cups-config="firefox http://localhost:631"
alias bbs='ssh -t sdk@home.codevoid.de "LANG=de_DE.UTF-8 syncterm -iC localhost:2323"'
# monitoring
lr() {
[ -z "$1" ] && return 2

3
.mutt/scripts/call-browser.sh Executable file
View File

@ -0,0 +1,3 @@
#/bin/sh -e
cp -f "$1" /tmp/mutt.html
2>/dev/null 1>&2 chrome file:///tmp/mutt.html &

3
.mutt/scripts/call.sh Executable file
View File

@ -0,0 +1,3 @@
#/bin/sh -e
2>/dev/null 1>&2 $1 "$2" &
sleep 1

View File

@ -45,7 +45,7 @@ Host sdf
Hostname otaku.freeshell.org
User sdk
Host shell
Host home
User sdk
# --- NOTES ---