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
    link
    fedilink
    21 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
      link
      fedilink
      11 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.