[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to workaroun 'nl' being added to input-line after 49 characters.
From: |
Linda Walsh |
Subject: |
Re: how to workaroun 'nl' being added to input-line after 49 characters.... |
Date: |
Mon, 14 Feb 2011 10:34:39 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 |
For completeness current code (haven't fixed the DISPLAY part yet):
if [ -n "$_sh_interactive_shell" ] ; then
shopt -s cdspell checkhash checkwinsize cmdhist dotglob extglob
shopt -s histappend hostcomplete lithist
shopt -s no_empty_cmd_completion xpg_echo
# build a prompt ###########
#specific to linux console compat emulations
_CRed="$(echo -en "\033[31m")"
_CRST="$(echo -en "\033[0m")"
_CBLD="$(echo -en "\033[1m")"
PUBLIC _prompt_open=""
PUBLIC _prompt_close=">"
PUBLIC _disp_port=${DISPLAY/[^:]*:/}
[[ $UID -eq 0 ]] && {
_prompt_open="$_CBLD$_CRed"
_prompt_close="#$_CRST"
}
PS1='${_prompt_open}$(spwd "$PWD")${_prompt_close} ';
if [ -n ${REMOTEHOST:-""} ]; then
#set_icon_and_title
PUB_CONST _pshost=$(echo -en
"\033]1;${USER}@${HOSTNAME}:${_disp_port}\007")
PS1='\[$_pshost\]${_prompt_open}${HOSTNAME}:$(spwd
"$PWD")${_prompt_close} '
fi
PS2='> '
PUBLIC PS1 PS2
########
#setup TTY settings
(My 'PUBLIC's are short for:
alias PUB_CONST="typeset -xr"
alias PUBLIC="typeset -x" ##aka EXPORT
- Solved: Re: how to workaroun 'nl' being added to input-line after 49 characters...., (continued)
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Dennis Williamson, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Andreas Schwab, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Linda Walsh, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Bob Proulx, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Linda Walsh, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Bob Proulx, 2011/02/13
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Greg Wooledge, 2011/02/14
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Bob Proulx, 2011/02/14
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Linda Walsh, 2011/02/14
- Re: how to workaroun 'nl' being added to input-line after 49 characters....,
Linda Walsh <=
- Re: how to workaroun 'nl' being added: Working now! Tnx!, Linda Walsh, 2011/02/14
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Dennis Williamson, 2011/02/14
- Re: how to workaroun 'nl' being added to input-line after 49 characters...., Linda Walsh, 2011/02/14