Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Minor PROMPT problem in 3.0.0



I find that PROMPT="%#" just prints the prompt as a single space.  Changing it
to "%# " works as expected.  This is irix 5.2.

# START zsh saveset
# uname:  IRIX Idefix 5.2 02282015 IP20

# Aliases.

alias 3dcvs='export CVSROOT=/local/3d/src/CVS'
alias cp='/local/gnu/bin/cp -b -V numbered'
alias dh='dirs -v'
alias fC='finger @coombs.anu.edu.au'
alias fithosts='sort -nr +1 /local/3d/etc/fitd.hosts|sed -e '\''/^#/d'\'' -e '\''/^$/d'\'
alias ftp=ncftp
alias gnus='gnumacs -f gnus'
alias ha=logout
alias home='dirs ~;popd'
alias ll='ls -lF'
alias lo=logout
alias loadFrank='down -e 10000 -a 10000 -d /dev/puma1 $RCCL/lsi11/frank -t'
alias loadFrankDai='down -e 10000 -a 10000 -d /dev/puma1 \
                    $RCCL/lsi11/frank.xy2d -t'
alias loadGold='down -e 10000 -a 10000 -d /dev/puma0 \
		     $RCCL/lsi11/goldenChild -t -T'
alias loadGoldDai='down -e 10000 -a 10000 -d /dev/puma0 \
                   $RCCL/lsi11/golden.xy2d -t -T'
alias ls='ls -CF'
alias ls.='ls -aF'
alias mann='man -M/local/std/man new'
alias manp='man -M/local/std/man:/local/std/lib/perl5/man'
alias mcinfo='tn3270 vm1.mcgill.ca'
alias muse='tn3270 mvs.mcgill.ca'
alias mv='/local/gnu/bin/mv -b -V numbered'
alias mycvs='export CVSROOT=~/CVS'
alias nstest=/local/src/etc/named/tools/nstest
alias pC='ping -s coombs.anu.edu.au'
alias pd=popd
alias petra='export NEWSRC=~/petra/.newsrc;export DOTDIR=~/petra'
alias pod=popd
alias pud=pushd
alias rC='~peta/bin/rlog coombs.anu.oz.au'
alias run-help=man
alias sz='sz -w 2048'
alias tC='telnet coombs.anu.edu.au'
alias tD='talk doug@xxxxxxxxxxxxxxxxx'
alias talkFrank='termlink -d /dev/puma1 -s 9600 -T'
alias talkGold='termlink -d /dev/puma0 -s 9600 -T'
alias wC='rsh coombs.anu.edu.au w'
alias weather='finger weather@xxxxxxxxxxxxx'
alias which-command=whence

# Key bindings.

bindkey -r "^@"
bindkey -r "^A"
bindkey -r "^B"
bindkey -r "^C"
bindkey -r "^D"
bindkey -r "^E"
bindkey -r "^F"
bindkey -r "^G"
bindkey -r "^H"
bindkey -r "^I"
bindkey -r "^J"
bindkey -r "^K"
bindkey -r "^L"
bindkey -r "^M"
bindkey -r "^N"
bindkey -r "^O"
bindkey -r "^P"
bindkey -r "^Q"
bindkey -r "^R"
bindkey -r "^S"
bindkey -r "^T"
bindkey -r "^U"
bindkey -r "^V"
bindkey -r "^W"
bindkey -r "^X"
bindkey -r "^Y"
bindkey -r "^Z"
bindkey -r "\e"
bindkey -r "^_"
bindkey -r "^?"
bindkey -r "\M- "
bindkey -r "\M-!"
bindkey -r "\M-\\""
bindkey -r "\M-#"
bindkey -r "\M-$"
bindkey -r "\M-%"
bindkey -r "\M-&"
bindkey -r "\M-'"
bindkey -r "\M--"
bindkey -r "\M-."
bindkey -r "\M-/"
bindkey -r "\M-:"
bindkey -r "\M-;"
bindkey -r "\M-<"
bindkey -r "\M-="
bindkey -r "\M->"
bindkey -r "\M-?"
bindkey -r "\M-@"
bindkey -r "\M-A"
bindkey -r "\M-B"
bindkey -r "\M-C"
bindkey -r "\M-D"
bindkey -r "\M-E"
bindkey -r "\M-F"
bindkey -r "\M-G"
bindkey -r "\M-H"
bindkey -r "\M-L"
bindkey -r "\M-M"
bindkey -r "\M-N"
bindkey -r "\M-O"
bindkey -r "\M-P"
bindkey -r "\M-Q"
bindkey -r "\M-R"
bindkey -r "\M-S"
bindkey -r "\M-T"
bindkey -r "\M-U"
bindkey -r "\M-V"
bindkey -r "\M-W"
bindkey -r "\M-_"
bindkey -r "\M-`"
bindkey -r "\M-a"
bindkey -r "\M-b"
bindkey -r "\M-c"
bindkey -r "\M-d"
bindkey -r "\M-e"
bindkey -r "\M-f"
bindkey -r "\M-g"
bindkey -r "\M-h"
bindkey -r "\M-l"
bindkey -r "\M-m"
bindkey -r "\M-n"
bindkey -r "\M-o"
bindkey -r "\M-p"
bindkey -r "\M-q"
bindkey -r "\M-r"
bindkey -r "\M-s"
bindkey -r "\M-t"
bindkey -r "\M-u"
bindkey -r "\M-v"
bindkey -r "\M-w"
bindkey -r "\M-x"
bindkey -r "\M-y"
bindkey -r "\M-z"
bindkey -r "\M-{"
bindkey -r "\M-|"
bindkey -r "\M-}"
bindkey -r "\M-~"
bindkey -r "\M-^?"
bindkey -r "^X^B"
bindkey -r "^X^F"
bindkey -r "^X^J"
bindkey -r "^X^K"
bindkey -r "^X^N"
bindkey -r "^X^O"
bindkey -r "^X^U"
bindkey -r "^X^V"
bindkey -r "^X^X"
bindkey -r "^X*"
bindkey -r "^XG"
bindkey -r "^Xg"
bindkey -r "^Xr"
bindkey -r "^Xs"
bindkey -r "^Xu"
bindkey -r "\e^D"
bindkey -r "\e^G"
bindkey -r "\e^H"
bindkey -r "\e^I"
bindkey -r "\e^J"
bindkey -r "\e^L"
bindkey -r "\e^M"
bindkey -r "\e^_"
bindkey -r "\e "
bindkey -r "\e!"
bindkey -r "\e\\""
bindkey -r "\e$"
bindkey -r "\e'"
bindkey -r "\e-"
bindkey -r "\e."
bindkey -r "\e0"
bindkey -r "\e1"
bindkey -r "\e2"
bindkey -r "\e3"
bindkey -r "\e4"
bindkey -r "\e5"
bindkey -r "\e6"
bindkey -r "\e7"
bindkey -r "\e8"
bindkey -r "\e9"
bindkey -r "\e<"
bindkey -r "\e>"
bindkey -r "\e?"
bindkey -r "\eA"
bindkey -r "\eB"
bindkey -r "\eC"
bindkey -r "\eD"
bindkey -r "\eF"
bindkey -r "\eG"
bindkey -r "\eH"
bindkey -r "\eL"
bindkey -r "\eN"
bindkey -r "\eP"
bindkey -r "\eQ"
bindkey -r "\eS"
bindkey -r "\eT"
bindkey -r "\eU"
bindkey -r "\eW"
bindkey -r "\e[A"
bindkey -r "\e[B"
bindkey -r "\e[C"
bindkey -r "\e[D"
bindkey -r "\e_"
bindkey -r "\ea"
bindkey -r "\eb"
bindkey -r "\ec"
bindkey -r "\ed"
bindkey -r "\ef"
bindkey -r "\eg"
bindkey -r "\eh"
bindkey -r "\el"
bindkey -r "\en"
bindkey -r "\ep"
bindkey -r "\eq"
bindkey -r "\es"
bindkey -r "\et"
bindkey -r "\eu"
bindkey -r "\ew"
bindkey -r "\ex"
bindkey -r "\ey"
bindkey -r "\ez"
bindkey -r "\e|"
bindkey -r "\e^?"

bindkey "^@"	set-mark-command
bindkey "^A"	beginning-of-line
bindkey "^B"	backward-char
bindkey "^C"	undefined-key
bindkey "^D"	delete-char-or-list
bindkey "^E"	end-of-line
bindkey "^F"	forward-char
bindkey "^G"	send-break
bindkey "^H"	backward-delete-char
bindkey "^I"	expand-or-complete
bindkey "^J"	accept-line
bindkey "^K"	kill-line
bindkey "^L"	clear-screen
bindkey "^M"	accept-line
bindkey "^N"	down-line-or-history
bindkey "^O"	accept-line-and-down-history
bindkey "^P"	up-line-or-history
bindkey "^Q"	push-line
bindkey "^R"	history-incremental-search-backward
bindkey "^S"	history-incremental-search-forward
bindkey "^T"	transpose-chars
bindkey "^U"	kill-whole-line
bindkey "^V"	quoted-insert
bindkey "^W"	backward-kill-word
bindkey "^X"	prefix
bindkey "^Y"	yank
bindkey "^Z"	undefined-key
bindkey "\e"	prefix
bindkey "^_"	undo
bindkey "^?"	backward-delete-char
bindkey "\M- "	expand-history
bindkey "\M-!"	expand-history
bindkey "\M-\\""	quote-region
bindkey "\M-#"	undefined-key
bindkey "\M-$"	spell-word
bindkey "\M-%"	undefined-key
bindkey "\M-&"	undefined-key
bindkey "\M-'"	quote-line
bindkey "\M--"	neg-argument
bindkey "\M-."	insert-last-word
bindkey "\M-/"	undefined-key
bindkey "\M-:"	undefined-key
bindkey "\M-;"	undefined-key
bindkey "\M-<"	beginning-of-buffer-or-history
bindkey "\M-="	undefined-key
bindkey "\M->"	end-of-buffer-or-history
bindkey "\M-?"	which-command
bindkey "\M-@"	undefined-key
bindkey "\M-A"	accept-and-hold
bindkey "\M-B"	backward-word
bindkey "\M-C"	capitalize-word
bindkey "\M-D"	kill-word
bindkey "\M-E"	undefined-key
bindkey "\M-F"	forward-word
bindkey "\M-G"	get-line
bindkey "\M-H"	run-help
bindkey "\M-L"	down-case-word
bindkey "\M-M"	undefined-key
bindkey "\M-N"	history-search-forward
bindkey "\M-O"	undefined-key
bindkey "\M-P"	history-search-backward
bindkey "\M-Q"	push-line
bindkey "\M-R"	undefined-key
bindkey "\M-S"	spell-word
bindkey "\M-T"	transpose-words
bindkey "\M-U"	up-case-word
bindkey "\M-V"	undefined-key
bindkey "\M-W"	copy-region-as-kill
bindkey "\M-_"	insert-last-word
bindkey "\M-`"	undefined-key
bindkey "\M-a"	accept-and-hold
bindkey "\M-b"	backward-word
bindkey "\M-c"	capitalize-word
bindkey "\M-d"	kill-word
bindkey "\M-e"	undefined-key
bindkey "\M-f"	forward-word
bindkey "\M-g"	get-line
bindkey "\M-h"	run-help
bindkey "\M-l"	down-case-word
bindkey "\M-m"	undefined-key
bindkey "\M-n"	history-search-forward
bindkey "\M-o"	undefined-key
bindkey "\M-p"	history-search-backward
bindkey "\M-q"	push-line
bindkey "\M-r"	undefined-key
bindkey "\M-s"	spell-word
bindkey "\M-t"	transpose-words
bindkey "\M-u"	up-case-word
bindkey "\M-v"	undefined-key
bindkey "\M-w"	copy-region-as-kill
bindkey "\M-x"	execute-named-cmd
bindkey "\M-y"	yank-pop
bindkey "\M-z"	execute-last-named-cmd
bindkey "\M-{"	undefined-key
bindkey "\M-|"	vi-goto-column
bindkey "\M-}"	undefined-key
bindkey "\M-~"	undefined-key
bindkey "\M-^?"	backward-kill-word
bindkey "^X^B"	vi-match-bracket
bindkey "^X^F"	vi-find-next-char
bindkey "^X^J"	vi-join
bindkey "^X^K"	kill-buffer
bindkey "^X^N"	infer-next-history
bindkey "^X^O"	overwrite-mode
bindkey "^X^U"	undo
bindkey "^X^V"	vi-cmd-mode
bindkey "^X^X"	exchange-point-and-mark
bindkey "^X*"	expand-word
bindkey "^XG"	list-expand
bindkey "^Xg"	list-expand
bindkey "^Xr"	history-incremental-search-backward
bindkey "^Xs"	history-incremental-search-forward
bindkey "^Xu"	undo
bindkey "\e^D"	list-choices
bindkey "\e^G"	send-break
bindkey "\e^H"	backward-kill-word
bindkey "\e^I"	self-insert-unmeta
bindkey "\e^J"	self-insert-unmeta
bindkey "\e^L"	clear-screen
bindkey "\e^M"	self-insert-unmeta
bindkey "\e^_"	copy-prev-word
bindkey "\e "	expand-history
bindkey "\e!"	expand-history
bindkey "\e\\""	quote-region
bindkey "\e$"	spell-word
bindkey "\e'"	quote-line
bindkey "\e-"	neg-argument
bindkey "\e."	insert-last-word
bindkey "\e0"	digit-argument
bindkey "\e1"	digit-argument
bindkey "\e2"	digit-argument
bindkey "\e3"	digit-argument
bindkey "\e4"	digit-argument
bindkey "\e5"	digit-argument
bindkey "\e6"	digit-argument
bindkey "\e7"	digit-argument
bindkey "\e8"	digit-argument
bindkey "\e9"	digit-argument
bindkey "\e<"	beginning-of-buffer-or-history
bindkey "\e>"	end-of-buffer-or-history
bindkey "\e?"	which-command
bindkey "\eA"	accept-and-hold
bindkey "\eB"	backward-word
bindkey "\eC"	capitalize-word
bindkey "\eD"	kill-word
bindkey "\eF"	forward-word
bindkey "\eG"	get-line
bindkey "\eH"	run-help
bindkey "\eL"	down-case-word
bindkey "\eN"	history-search-forward
bindkey "\eP"	history-search-backward
bindkey "\eQ"	push-line
bindkey "\eS"	spell-word
bindkey "\eT"	transpose-words
bindkey "\eU"	up-case-word
bindkey "\eW"	copy-region-as-kill
bindkey "\e[A"	up-line-or-history
bindkey "\e[B"	down-line-or-history
bindkey "\e[C"	forward-char
bindkey "\e[D"	backward-char
bindkey "\e_"	insert-last-word
bindkey "\ea"	accept-and-hold
bindkey "\eb"	backward-word
bindkey "\ec"	capitalize-word
bindkey "\ed"	kill-word
bindkey "\ef"	forward-word
bindkey "\eg"	get-line
bindkey "\eh"	run-help
bindkey "\el"	down-case-word
bindkey "\en"	history-search-forward
bindkey "\ep"	history-search-backward
bindkey "\eq"	push-line
bindkey "\es"	spell-word
bindkey "\et"	transpose-words
bindkey "\eu"	up-case-word
bindkey "\ew"	copy-region-as-kill
bindkey "\ex"	execute-named-cmd
bindkey "\ey"	yank-pop
bindkey "\ez"	execute-last-named-cmd
bindkey "\e|"	vi-goto-column
bindkey "\e^?"	backward-kill-word

# Completions.

compctl -b bindkey
compctl -c builtin
compctl -v export
compctl -o setopt
compctl -v typeset
compctl -v unset
compctl -o unsetopt
compctl -v vared
compctl -c which
compctl -C -c
compctl -D -f
compctl -T

# Undefined functions.


# Defined functions.

chpwd () {
	settitle $(print -Pn "%n %m %~")
}
clean () {
	local ask=-i
	if [[ $# -eq 1 && $1 = -f* ]]
	then
		ask='-f' 
	fi
	setopt nullglob
	for f in core .*~ *~ \#*\#
	do
		[ -e $f ] && rm $ask $f
	done
	unsetopt nullglob
}
dvilw2 () {
	dvips -o\$lw2\ -R $*
}
dvilw3 () {
	dvips -o\$lw3\ -R $*
}
dvilw4 () {
	dvips -o\$lw4\ -R $*
}
dviqms () {
	dvips -o\$qms\ -R $*
}
emfaq () {
	waissearch -h bigbird.bu.edu -d faq -p 2210 $*
}
ipname () {
	nslookup -q=ptr $1
}
l. () {
	if [[ $# -eq 0 ]]
	then
		ls -aFd .*(N)
	else
		args= 
		for a
		do
			echo $a
			if [[ $a != -* ]]
			then
				a=$a/.*(N) 
			fi
			args="$args $a" 
		done
		ls -aFd $args
		args= 
	fi
}
mk () {
	touch make.log
	time make $* >& make.log
}
mkt () {
	mk $* &
	tail -f make.log
}
prlpr () {
	pr -l88 $* | textps -s9 -l88 | lpr
}
prlw4 () {
	pr -l88 $* | textps -s9 -l88 | lpr -Plw4
}
prpmc () {
	enscript -2rhG -fCourier8 $*
}
settitle () {
	print -n "\eP1.yConsole $3\e\\\\\eP3.yConsole $3\e\\\\"
}
unsh () {
	echo sed -n -e '/#! *\/bin.sh/,$p' $*
}
unshar () {
	sed -n -e '/#! *\/bin.sh/,$p' $* | /bin/sh
}
ztar () {
	zcat $2 | tar f$1 - $3*
}

# Limits.

limit datasize        512MB
limit stacksize       64MB
limit descriptors     200
limit vmemorysize     512MB
limit resident        26MB

# Non-array variables.

TERMCAP=''
TERM='iris-ansi'
\'#\'="0"
\'$\'="3258"
\'?\'="1"
ARGC="0"
AWK="awk"
BAUD="38400"
BIBINPUTS=".:./bib:/home/asterix/peta/lib/bib:"
CDPATH="\'\'"
COLUMNS="80"
CONSOLE="1"
CPP="/lib/cpp"
CVSROOT="/home/asterix/peta/CVS"
DIRSTACKSIZE="8"
DISPLAY=":0.0"
EDITOR="gnu"
EGID="1100"
ENVIRONMENT_SET="1"
ERRNO="0"
EUID="126"
FCEDIT="vi"
FIGNORE=".o:/home/asterix/peta"
FPATH="/home/asterix/peta/bin"
GID="1100"
HISTCHARS="\'!^#\'"
HISTFILE="/home/asterix/peta/.zhistory"
HISTSIZE="100"
HOME="/home/asterix/peta"
HOST="Idefix.McRCIM.McGill.EDU"
KEYTIMEOUT="40"
LINENO="329"
LINES="33"
LISTMAX="100"
LOGCHECK="15"
LOGNAME="peta"
MACHTYPE="mips"
MAILCHECK="60"
MAILPATH="\'\'"
MANPAGER="\'/local/std/bin/less -s\'"
MANPATH=".:/home/asterix/peta/man:/local/gnu/man:/usr/share/catman:/local/infosys/man:/local/X11/man:/local/TeX/man:/local/std/man:/local/3d/man"
MAN_PAGE="\'/local/std/bin/less -s\'"
NULLCMD="cat"
OLDPWD="/local/std/src/bin/zsh-3.0.0/Src"
OPTARG="\'\'"
OPTIND="1"
OSTYPE="irix5.2"
PAGER="\'/local/std/bin/less -s\'"
PATH=".:/home/asterix/peta/bin:/home/asterix/peta/bin/share:/local/gnu/bin:/usr/bsd:/bin:/usr/bin:/usr/sbin:/local/tools/bin:/local/infosys/bin:/usr/bin/X11:/local/X11/bin:/local/TeX/bin:/etc:/usr/etc:/local/etc:/local/math/bin:/local/std/bin:/local/3d/bin:/home/asterix/lloyd/rccl/bin:/local/bin:/usr/local/bin:/usr/demo"
POSTEDIT="\'\'"
PPID="434"
PRINTER="lj1"
PROMPT="\'%# \'"
PROMPT2="\'%_> \'"
PROMPT3="\'?# \'"
PROMPT4="\'+ \'"
PS1="\'%# \'"
PS2="\'%_> \'"
PS3="\'?# \'"
PS4="\'+ \'"
PSVAR="\'\'"
PWD="/local/std/src/bin/zsh-3.0.0"
RANDOM="28635"
RCCL="/home/asterix/lloyd/rccl"
READNULLCMD="\'/local/std/bin/less -s\'"
ROBOTDSERVER="obelix"
ROBOTDVERS="2"
RPROMPT="\'%~\'"
RPS1="\'%~\'"
SAVEHIST="100"
SECONDS="640"
SHELL="/local/std/bin/zsh"
SHLVL="3"
SHORTHOST="Idefix"
SPROMPT="\'zsh: correct \'\\'\'%R\'\\'\' to \'\\'\'%r\'\\'\' [nyae]? \'"
TEXINPUTS=".:./eps:/home/asterix/peta/lib/tex:"
TIMEFMT="\'%J  %U user %S system %P cpu %*E total\'"
TMPPREFIX="/tmp/zsh"
TTY="/dev/ttyq1"
TTYIDLE="-1"
TZ="EST5EDT"
UID="126"
USER="peta"
USERNAME="peta"
VENDOR="sgi"
VERSION_CONTROL="numbered"
WATCH="notme"
WATCHFMT="\'%n has %a %l from %m.\'"
WINDOWID="41943043"
WORDCHARS="\'*?_-.[]~=/&;!#$%^(){}<>\'"
XAPPLRESDIR="/local/X11/lib/app-defaults"
XRSH_AUTH_TYPE="xauth"
XRSH_RSH_ERRORS=".xrsh_errs"
XUSERFILESEARCHPATH="/home/asterix/peta/.desktop-Idefix.McRCIM.McGill.EDU/%N:/home/asterix/peta/%N:/usr/lib/X11/%L/app-defaults/sgi-color1024/%N:/usr/lib/X11/app-defaults/sgi-color1024/%N:/usr/lib/X11/app-defaults/color1024/%N:/local/X11/lib/app-defaults/%N"
ZSH_NAME="zsh"
ZSH_VERSION="3.0.0"
coombs="coombs.anu.edu.au"
each="/local/gnu/bin"
histchars="\'!^#\'"
reporter_OSVersion="IRIX_5.2"
reporter_junkiequotes="no"
status="1"
str="\'IRIX Idefix 5.2 02282015 IP20\'"
prompt='test%'

# Array variables.

argv=()
'*'=()
cdpath=()
fignore=(.o /home/asterix/peta)
fpath=(/home/asterix/peta/bin)
mailpath=()
manpath=(. /home/asterix/peta/man /local/gnu/man /usr/share/catman /local/infosys/man /local/X11/man /local/TeX/man /local/std/man /local/3d/man)
path=(. /home/asterix/peta/bin /home/asterix/peta/bin/share /local/gnu/bin /usr/bsd /bin /usr/bin /usr/sbin /local/tools/bin /local/infosys/bin /usr/bin/X11 /local/X11/bin /local/TeX/bin /etc /usr/etc /local/etc /local/math/bin /local/std/bin /local/3d/bin /home/asterix/lloyd/rccl/bin /local/bin /usr/local/bin /usr/demo)
psvar=()
signals=(EXIT HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM USR1 USR2 CLD PWR WINCH URG POLL STOP TSTP CONT TTIN TTOU VTALRM PROF XCPU XFSZ 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 RTMIN ZERR DEBUG)
watch=(notme)

# Exported variables.

export TERMCAP
export TERM
export BIBINPUTS
export CONSOLE
export CVSROOT
export DISPLAY
export EDITOR
export ENVIRONMENT_SET
export HOME
export LOGNAME
export MANPAGER
export MANPATH
export MAN_PAGE
export PAGER
export PATH
export PRINTER
export PWD
export RCCL
export ROBOTDSERVER
export ROBOTDVERS
export SHELL
export SHLVL
export SHORTHOST
export TERM
export TEXINPUTS
export TZ
export USER
export VERSION_CONTROL
export WINDOWID
export XAPPLRESDIR
export XRSH_AUTH_TYPE
export XRSH_RSH_ERRORS
export XUSERFILESEARCHPATH

# Setopt.

setopt extendedglob
setopt histignoredups
setopt histignorespace
setopt login
setopt pushdminus
setopt pushdsilent

# END zsh saveset



Messages sorted by: Reverse Date, Date, Thread, Author