Update 2023-01-30 10:56 OpenBSD/amd64

This commit is contained in:
c0dev0id
2023-01-30 10:56:19 +01:00
parent 2921779271
commit 5f9d75b7c3
7 changed files with 31 additions and 17 deletions

View File

@@ -19,13 +19,13 @@ test -f ${HOME}/.bin/_config \
test -f "${HISTFILE}" \
|| touch "${HISTFILE}"
HISTDATA="$(while IFS= read -r l; do echo "${#l} $((++n)) $l"; done < "${HISTFILE}" | sort -t\| -k 2 -u | sort -n | cut -d" " -f3-)"
PICKLIST="paste_from_clipboard
pick_from_history
edit_history_file
-----------------
$(cat "${HISTFILE}" \
| sort -t\| -k 2 -u \
| sort -r \
$(echo "${HISTDATA}" \
| cut -b 23- \
| egrep -v ' |^[^a-zA-Z0-9]' \
| grep '..\...'\