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

Linux

5385 readers
252 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 1 year ago
MODERATORS
top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 5 months ago (1 children)

Seems interesting. Could you explain the usage a little more clearly?

[–] [email protected] 4 points 5 months ago (1 children)

I am only reposting this unfortunately, but you can probably open an issue on the Github to ask the owner to detail a bit more the scripts: https://github.com/warrior0x7/xlotus

[–] [email protected] 2 points 5 months ago

Ah thanks, I assumed you were the creator

[–] [email protected] 4 points 5 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 {}'