• 0 Posts
  • 106 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle
  • Things I already have:

    • rebind ctrl-r and up (configurable) to a full screen history search UI
    • old history file is not replaced

    Things I could find useful once in a while:

    • switch filter modes via ctrl-r; search history just from the current session, directory, or globally

    Things I don’t care about and probably wouldn’t use:

    • back up and sync encrypted shell history
    • log exit code, cwd, hostname, session, command duration, etc
    • calculate statistics such as “most used command”
    • quick-jump to previous items with Alt-<num>
    • enter to execute a command, tab to edit

    I really don’t want:

    • the same history across terminals, across sessions, and across machines

    Not really a feature:

    • store shell history in a sqlite database






  • hmm this gives me all colors (from ls and grep)

    /usr/bin/ls -l --color=always | /usr/bin/grep --color=always a
    

    (I’m using their full paths because I usually alias ls and grep to eza and rg respectively)

    There’s a export CLICOLOR_FORCE=1 you can try to avoid repeating --color=always, but that didn’t work for me with ls and grep specifically.

    Edit: there’s also a FORCE_COLOR=1 that is popular, but again, neither ls nor grep seem to care.