this post was submitted on 30 Apr 2024
45 points (95.9% liked)

Linux

48186 readers
1517 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
all 8 comments
sorted by: hot top controversial new old
[–] Deebster@programming.dev 10 points 6 months ago
function delete-branches() {
  git branch |
    grep --invert-match '\*' |
    cut -c 3- |
    fzf --multi --preview="git log {} --" |
    xargs --no-run-if-empty git branch --delete --force
}

This is really slick.

[–] d3Xt3r@lemmy.nz 6 points 6 months ago* (last edited 6 months ago) (3 children)

Those of you reading this might also be interested in two_percent, which is a fork of skim, which in turn is a Rust implementation of fzf. two_percent is faster, more efficient and uses less memory than fzf, which is especially noticeable with large inputs.

[–] brenticus@lemmy.world 4 points 6 months ago

My most direct use of fzf is to search large result sets for something I can't 100% remember the name or location of, so this actually sounds nice. I've managed to get fzf to slow down a few times and... well, I'm sure as hell not organizing that folder structure.

[–] learnbyexample@programming.dev 1 points 6 months ago (1 children)

What's the difference between two_percent and skim?

[–] d3Xt3r@lemmy.nz 3 points 6 months ago* (last edited 6 months ago) (1 children)

It's faster and more memory efficient basically. skim also appears to have been abandoned (no updates in over an year), whereas two_percent is being actively developed.

[–] t0mri@lemmy.ml 1 points 6 months ago

But y 2% instead of skim?