this post was submitted on 08 Jun 2024
39 points (97.6% liked)

Linux

5090 readers
60 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] thingsiplay@beehaw.org 4 points 4 months ago

Nice scripts. I want to give an advice you may or may not know. In Bash you can "export" a function, which then you can use the function in fzf preview or bind command like any other program.

hello() {
	echo "hello ${1}"
}
export -f hello

find ./* -maxdepth 0 | fzf --preview='hello {}'