Bhist (260B) [raw]
1 #!/bin/sh 2 # Bhist -- capture buffer history 3 set -e 4 mkdir -p "$HOME/.cache/acme" 5 echo "Bhist start: $(date)" >> "$HOME/.cache/acme/buffer_history.txt" 6 9p read acme/log | grep '^[0-9]* new' \ 7 | sed -l 's/^[0-9]* new//' >> "$HOME/.cache/acme/buffer_history.txt"