Home » Questions » Computers [ Ask a new question ]

How do I get GNU screen not to start in my home directory in OS X?

How do I get GNU screen not to start in my home directory in OS X?

GNU Screen (screen) behaves differently on OS X 10.5 (Leopard) and 10.6 (Snow Leopard) compared to Linux (at least Ubuntu, Red Hat, and Gentoo) and OS X 10.4 (Tiger). In 10.5 and 10.6, new screens (made with screen or ^A c) always places me in my home directory ~. In Linux and OS X Tiger, new screens have a pwd of wherever the screen was created originally.

Asked by: Guest | Views: 72
Total answers/comments: 2
Guest [Entry]

"A better way to check what exactly is being run when you type screen would be to run command -V screen. This will tell you whether it's running a binary (in which case the full path will be given) or a shell alias, function, etc.

Another thing to check is whether there's a chdir command in either your ~/.screenrc or the system-wide screenrc."
Guest [Entry]

"The first step is to make sure that screen isn't an alias.

Type alias and look for screen. Be warned that this list could be long. You may want to type alias | grep screen to separate the wheat from the chaff.

If screen turns out to be an alias for something like cd ~ && screen you can remove this using unalias screen."