33
edits
(→Reattaching Screen Automatically: talked about ~/.zlogin and ~/.bash_login) |
|||
Line 180: | Line 180: | ||
So, you've made your screen, configured it, and you happily type screen -dr '''every time''' you login to RedBrick. But wouldn't it be nice if whenever you login your screen would reattach '''itself'''??? It can be done :D | So, you've made your screen, configured it, and you happily type screen -dr '''every time''' you login to RedBrick. But wouldn't it be nice if whenever you login your screen would reattach '''itself'''??? It can be done :D | ||
Simply use your favorite text editor to edit your ~/. | Simply use your favorite text editor to edit your ~/.zlogin if you're using zsh (if you haven't changed your login shell, this is the one you're using) or ~/.bash_login if you're using bash and put the following in it | ||
screen -dr | |||
That should do the job. | That should do the job. It'll try to reattach a screen whenever you login on any redbrick server | ||
* Please note, if this in fact, does not work, you can edit it out by using winSCP and editing the file using it. | * Please note, if this in fact, does not work, you can edit it out by using winSCP and editing the file using it. |
edits