You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
433 B
Plaintext
13 lines
433 B
Plaintext
3 years ago
|
#!/usr/bin/env sh
|
||
|
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
|
||
|
# https://www.youtube.com/user/gotbletu
|
||
|
# DESC: open a cheatsheet to read notes
|
||
|
# DEPEND: fzf findutils coreutils
|
||
|
|
||
|
selected="$(find ~/.config/bluepill/ -type f | sort | fzf -e -i --reverse --delimiter / --with-nth -1 --preview 'cat {}')"
|
||
|
[ -z "$selected" ] && exit
|
||
|
|
||
|
# add to tmux and X11 clipboard
|
||
|
xsel -b < "$selected"
|
||
|
tmux load-buffer "$selected"
|