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

Re: code completition / cannot delete characters



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.



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