I am working with the command line executing the same commands many times manually following the same pattern. Now I am looking for a way to simplify it by just typing the command only once.
Lets take a look at a normal docker example:
docker ps
docker ps -a
docker ps -l
docker stop x
docker start x
docker start y
docker logs y
docker logs -f z
This example also applies to many more commands such as git, brew, gulp, gcloud.
Now I am looking for some sort of a command wrapper shell, that allows me to write with docker
that will wraps any command in a nested/sub shell.
Then I don't need to prepend the docker
command and just call:
>ps
# does docker ps and displays result
>stop x
# prepends docker so docker stop x is actually executed
CTRL+C # to exit the command wrapper
Does something like this already exist? I was googling for it but could not describe it properly hence I didn't find anything.
bash alias
? Something like this in your.bashrc
should workalias dockerstuff = 'docker ps && docker stop x && docker foo'
.telnet
orgdb
?