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

help-circle
  • vort3@lemmy.mltoLinux@lemmy.mlCurate your shell history
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    edit-2
    16 days 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.











  • Well you can have 1 letter sequences which is almost what you want. For example have a sequence that consists of single “u” key that composes into “ü” or something similar.

    I don’t know if it’s the same in every DE/Distro, but in KDE I’m pretty sure I can both hold the Compose key and type sequences, or press Compose key once and then type a sequence.

    But can’t check right now.







  • I’m trying to tinker with my system and replace a perfectly good and well optimized default kernel for some kernel made for specific niche use cases and I don’t see any performance increase. Why would it be?

    Yes, surprisingly the default kernel is optimized well rather than just being a badly written placeholder that users should manually replace for their system to become usable.

    It’s 2025 and stuff is designed to just work out of the box.



  • I use compose key sequences to save time writing out long email addresses. For example, I have something like this in my ~/.XCompose:

    <Multi_key> <b> <o> <s> <at>: "myangryboss@company.com" # Email of my very angry boss
    

    So I can just type Compose (right alt on my system), bos@ and get his email address. Less error prone than typing out emails manually.

    I’m probably not the only one to use compose strings as a replacement to a text expander, but I don’t know anyone else who does this.