0
votes
1answer
116 views

Can you repeat last command with flags in bash?

Is there a way to repeat your last command with additional flags? Example: Say I do this: rm myFavouriteDirectory I will get a reply: rm: myFavouriteDirectory/: is a directory Obviously what I ...
2
votes
1answer
119 views

Equivalent of bash !! that ignores first word

In bash, I frequently do touch whatever.py vim whatever.py I want something like touch whatever.py vim !! So how do I do that with a bash ! directive that eats the first word?
2
votes
2answers
720 views

I would like to write a shell script/rc file that automates GNU Screen splits and starts programs within them

I would like to automate a scenario when I am working on a rails project, and I think screen is the perfect way to accomplish this without having to drag and drop multiple windows after every startup ...