this post was submitted on 30 Apr 2024
44 points (95.8% liked)

Linux

46794 readers
961 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
top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 3 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.

[–] [email protected] 5 points 3 months ago* (last edited 3 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.

[–] [email protected] 4 points 3 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.

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

What's the difference between two_percent and skim?

[–] [email protected] 2 points 3 months ago* (last edited 3 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.

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

Last commit to two percent was a year ago.

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago)

No, you're looking at the commit log for skim. two_percent was last updated two months ago. I also had a chat with the author yesterday and they're keen to continue maintaining the fork.

[–] [email protected] 1 points 3 months ago

But y 2% instead of skim?