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

Re: segfault due to chpwd_function



On 11 Dec 2009, at 17:36, Joel Bernstein wrote:
> I believe I can workaround this issue by setting the desired prompt theme to a var in my chpwd_function and calling prompt() from my precmd_function 

Actually, this doesn't work, I still get a segfault:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100020be4 in hasher ()
(gdb) bt
#0  0x0000000100020be4 in hasher ()
#1  0x0000000100020c2b in gethashnode ()
#2  0x0000000100069995 in callhookfunc ()
#3  0x000000010006d075 in preprompt ()
#4  0x000000010002ac33 in loop ()
#5  0x000000010002bf74 in zsh_main ()
#6  0x0000000100001374 in start ()

Is this a zsh bug?

Any ideas how to achieve dynamic prompt theme changing based on some command being run against the directory being entered?

/joel


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