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?

  • Scraft161@iusearchlinux.fyi
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I have a file in my ~ called .alias and it is sourced by any shell I might use (currently just zsh) in it are common aliases like s => sudo and “sudo” => "sudo " (just put this as an alias if you use them a lot, you’ll thank me when you’re trying to use them with sudo)

    • jsveiga@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I vi as the command line editor, so fetching history commands is quick:

      ESC /searchstring

      But if it’s something really frequent or may benefit from parameters, I usually throw a perl or bash script in /usr/local/bin.