Results 1 to 6 of 6
I just tried out zsh, and I really like its style of completion where it iterates through the possibilites, however, I also like how bash displays my current directory at ...
- 01-27-2006 #1
zsh and bash
I just tried out zsh, and I really like its style of completion where it iterates through the possibilites, however, I also like how bash displays my current directory at the prompt. Is there an option I can turn on in one of these shells to combine my preferences?
Thanks!
- 01-27-2006 #2
Is this what you are talking about?
http://www.b2pi.com/zsh/FAQ/zshfaq03.html#l22How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger
New users read The FAQ
- 01-28-2006 #3Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
In every shell there is a variable that sets the way the prompt is displayed. In bash and zsh this is the PS1 variable; you usually set this with a
line in .zshrc. The syntax of the prompt is different in zsh than bash, and is covered in "PROMPT EXPANSION" section of "man zshmisc".Code:PS1 = "whatever"
- 01-28-2006 #4Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
PS1="$PWD"$"
And don't forget PS2, 3 and 4.
- 01-28-2006 #5
I don't think I explained it well. I'll just give an example:
Current bash prompt:
Current zsh prompt:Code:rob@TheRing:~$
I'd like the zsh one to look just like the bash one.Code:TheRing%
- 01-28-2006 #6Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
add
to your .zshrcCode:PS1 = "%n@%m:%~$ "


Reply With Quote