I am currently looking for a way to easily store and run commands, usually syncing files between two deeply nested directories whenever I want.

So far I found these projects:

Other solutions:

  • Bash history using ^+r
  • Bash aliases
  • Bash functions

What do you guys use?

  • tumulus_scrolls@lemmy.fmhy.ml
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Obvious things I don’t see mentioned:

    • Bash scripts kept in the home directory or another place that’s logical for them specifically.
    • history | grep whatever (or other useful piping), though your older commands are forgotten eventually. You can mess with the values of HISTSIZE and HISTFILESIZE environment variables in your system.