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

Re: PROMPT



On Jun 17,  5:32pm, Oliver Grimm wrote:
} Subject: Re: PROMPT
}
}         precmd ()
}         {
}             if test "$UID" = 0; then
}                 PS1="%m:`pwd -r` # "
}             else
}                 PS1="%n@%m:`pwd -r` > "
}             fi
}         }
} 
} this defines a function that is called every time anything is executed
} by the shell, and so also make a change of PROMPT impossible.
} 
} I wonder if this was intended by the designer of the profile ?

I doubt that the side-effect of preventing the user from customizing his
prompt was intentional.

On Jun 17,  5:20pm, Peter Stephenson wrote:
} Subject: Re: PROMPT
}
} I can hardly believe it.
} 
} setopt chaselinks
} PS1='%n@%m:%/'

For completeness:

PS1='%(#..%n@)%m:%/%(#.#.>) '

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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