I am trying to create a simple alias that will allow me to create a new screen and set its name simple by typing newscreen {screenname}
where {screenname}
is set at the prompt.
For example, I would like to be able to create the following alias:
alias newscreen='screen -D -R -S {screenname}'
Then at the command prompt, type:
$ newscreen client
This would then start a new screen for me, and give it a name of client
That way, I could resume the screen with screen -r client
.
Can someone point out to me the best way to do that.
Thanks.
alias newscreen='screen -D -R -S'
?