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

Re: sluggish prompt



On Sun, 7 Oct 2007, Russell Hoover wrote:

if it's hanging at every prompt (not just when the shell starts) i would start with turning on XTRACE within the precmd function.

It hangs after any inactivity. I don't know that I've ever used the precmd function. How would I enable XTRACE with it?
==============

in the rc file...

stuff
precmd () {
	set -x		# turn on XTRACE
	stuff
	set +x		# turn off XTRACE
}
stuff




--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"Workers of the World, Unite!
	 You have nothing to lose but your chains."
		-- Karl Marx, 1848




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