• 1 Post
  • 98 Comments
Joined 5 years ago
cake
Cake day: January 15th, 2021

help-circle





  • This is an excellent answer and I wish I knew all of this when starting to use archlinux. “Arch does not support partial upgrades” is something you can read everywhere, but it’s rare to find such a good explanation of what exactly a partial upgrade is, and which commands lead to it.

    I only learned about all of this when I got into some broken state by randomly running pacman commands.

    Everyone, be like this guy. This guy explains stuff well. Newbies need stuff explained.





  • vort3@lemmy.mltoLinux@lemmy.mlCurate your shell history
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    edit-2
    5 months ago

    I comment the commands that I want and then use vim to remove ones without comments.

    For example, I run:

    longandannoyingcommand -f1 -f2 -f3 # keep, does something useful
    

    Usually comment explains what the command does so I can find it by description using fzf history search. And then you can easily find all lines that contain (or do not contain “# keep”) in your history to remove or keep.