GNU screen: open tab in current working directory

A nice trick for having screen open a new tab in the same directory as the one you're currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir $PWD;screen^M"
bind ^c stuff "screen -X chdir $PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Show Comments