| 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\\'\
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||