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

Linux

5090 readers
57 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
top 4 comments
sorted by: hot top controversial new old
[–] redbr64@lemmy.world 6 points 4 months ago (1 children)

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

[–] Blaze@lemmy.zip 4 points 4 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

[–] redbr64@lemmy.world 2 points 4 months ago

Ah thanks, I assumed you were the creator

[–] 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 {}'