Subject: Re: [ksh93-integration-discuss] No line editing mode set snv_72 --------
> As long as I'm asking questions... Tcsh has this nice "compact" path notation > th > at I use in my current prompt (uses ellipses ...). Is there an equivalent for > ks > h93? Long paths make an unwieldy prompt. > > You can always use something like $(shortpath "$PWD") in you PS1 prompt to generate a shortened path. Here is a sample shorpath function: function shortpath # $1 [len] { typeset path=$1 integer len=${2:-20} (( len < 5 && len=5 )) [[ $path == "$HOME/"* ]] && path='~'${path#${HOME%/}} if (( ${#path} < len)) then print -r -- "$path" else print -r "...${path:4-len}" fi } David Korn dgk at research.att.com