[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: command line formating problem



on Fri, Aug 03, 2001 at 12:18:47AM -0400, Theodore Knab (tjk@annapolislinux.org) wrote:
> Hello,
> 
> I have a screen formating question.
> 
> How do I prevent my screen from wrapping like this?
> 
> Normal Prompt:
> tjk@annapolislinux:/home/httpd/html/docs/public_key$
> 
> Single line wrapping:
> pgp.com --send-key tjkme/httpd/html/docs/public_key$ gpg --keyserver certserver.p

Looks like you've got a longish shell prompt.  There are various
settings, following is from my .bashrc:

------------------------------------------------------------------------
# Following sets prompt to [userid@host dir], and puts the full 
#   user@host:/full/path/spec in an xterm title bar.
function proml
{
case $TERM in
    xterm*|rxvt|eterm|wterm*)
        local TITLEBAR='\[\033]0;\u@\h:\w\007\]'
	eval `dircolors /etc/dir_colors`
        ;;
    *)
        local TITLEBAR=''
        ;;
esac

# shell prompt
PS1="${TITLEBAR}\
[\u@\h:\W]\
\$ "
PS2='> '
PS4='+ '
}

proml
unset proml
export PS1
------------------------------------------------------------------------

-- 
Karsten M. Self <kmself@ix.netcom.com>        http://kmself.home.netcom.com/
  What part of "Gestalt" don't you understand?          There is no K5 cabal
    http://gestalt-system.sourceforge.net/           http://www.kuro5hin.org
Free Dmitry!! Boycott Adobe!! Repeal the DMCA!!  http://www.freesklyarov.org

Attachment: pgpWxTPqujCMY.pgp
Description: PGP signature


Reply to: