Update 2023-01-30 10:56 OpenBSD/amd64
This commit is contained in:
@@ -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 '..\...'\
|
||||
|
||||
Reference in New Issue
Block a user