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

Re: code completition / cannot delete characters



(Micah, sorry for sending this to you in private before)

Micah Cowan <micah@xxxxxxxxxx>:
> Bart Schaefer wrote:
> >On Mar 11, 12:33pm, Anupam Srivastava wrote:
> >}
> >} Sorry for this newb question. What else should one do if not export
> >} PS1. I am exporting PROMPT and RPROMPT in my ~/.zshrc
> >
> >It's quite correct to assign a value to PROMPT et al. in ~/.zshrc.
> >Just don't mark it as "export".
> >
> >The use of "export PS1" is sensible in the old Bourne shell and in a
> >strictly POSIX shell, because there is no file that is read by every
> >interactive shell (only ~/.profile read by login shells).
> 
> I can't speak to the original Bourne shell, but a strictly POSIX shell 
> still has "export ENV=~/.shrc" as an option, which would seem preferable.

Yes, that is true.
I think $ENV can be safely exported in a profile file (such as
/etc/profile), because zsh doesn't look at $ENV for a file to source,
unless started as sh (or ksh). AFAIK bash does the same.

The old bourne shell didn't look at $ENV, AFAIK.
Only /etc/profile and ~/.profile.

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



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