My favorites | Sign in
Project Home Downloads Wiki Source
Search
for
ScreenOSX  
Open GNU Screen in OS X in the Current Working Directory
Updated Oct 18, 2008 by silassewell

~/.bashrc

alias screen='export SCREENPWD=$(pwd); /usr/bin/screen'
export SHELL='/bin/bash -rcfile ~/.bash_profile';

case "$TERM" in 
    'screen')
         cd $SCREENPWD
         ;; 
esac

~/.screenrc

startup_message off
shell -$SHELL
Comment by csc...@gmail.com, Jan 13, 2009

Thank you!

Comment by jeffschw...@gmail.com, Mar 3, 2009

That is excellent. Thank you for sharing your screen fu.

What prevents screen from working normally on OS X in the first place? I never had this problem on Linux.

Comment by krisajen...@gmail.com, Jun 20, 2009

w00t! Thanks!

Comment by adamb...@gmail.com, Aug 12, 2009

Worked great -- thanks! I skipped the pwd stuff and went straight for the shell sourcing ;)

~/.profile

export SHELL='/bin/bash -rcfile ~/.profile'

~/.screenrc

shell -$SHELL
Comment by humancl...@gmail.com, Apr 27, 2010

Thanks! For some reason this info took forever to locate.


Sign in to add a comment
Powered by Google Project Hosting