I have a docker container and every time I build and start it, I want just to press UP for choosing a predefined command.
What's the best way to handle this?
$ echo "<yourcommand>" >> ~/.bash_history
or set up an alias in your
alias s='<yourcommand(s)>' so every time you input
s and hit enter it executes your commands.
I do: : some_command
Then edit off the colon when I recall it in history. Colon is the null command. It used to be the way to comment things out before the hash became the comment character