Fish · 295 bytes Raw Blame History
1 ## fuzzy pick from clipboard history, copy
2 #
3 function clipf
4 type -q cliphist; or begin; echo "cliphist not installed"; return 1; end
5 set -l id (cliphist list | fzf --tac --preview 'cliphist decode {} | sed -n "1,200p"')
6 test -n "$id"; or return
7 cliphist decode $id | wl-copy
8 end