paperlined.org
apps > gnu_screen
document updated 13 years ago, on Sep 23, 2010
An 'scp'able string in hardstatus
.screenrc hardstatus alwayslastline "%h"
.bashrc
case $TERM in screen*)
   PROMPT_COMMAND='perl -e '\''print "\e_$ENV{USER}\@$ENV{HOSTNAME}:$ENV{PWD}/\e\\"'\'
esac
.vimrc
" set GNUScreen's hardstatus line
function! SetScreenHardstatus()
   exec ":!echo -e '\033_" . $USER . "@" .$HOSTNAME . ":" . expand("%:p") . "\033\\'\"
endfunction
au BufEnter * silent call SetScreenHardstatus()

TODO