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?
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 ofHISTSIZE
andHISTFILESIZE
environment variables in your system.