* prompt weirdness
@ 2001-03-20 21:59 Jeff Shipman
2001-03-22 5:44 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Shipman @ 2001-03-20 21:59 UTC (permalink / raw)
To: zsh-users
I've got the following prompt setting:
PROMPT="%n@%m:%B%30<...<%~%b%(!.#.>) "
and it works great when I'm my normal
user (looks like: jeff@mother:~> ), but
when I su to root, which I have the following
function for:
su() { ZDOTDIR=/u/jeff command su "$@" -c zsh }
I am not seeing the # at the end. Instead, I
get only a single space after my home directory.
Why is this happening?
Jeff "Shippy" Shipman E-Mail: shippy@nmt.edu
Computer Science Major ICQ: 1786493
New Mexico Institute of Mining and Technology
Homepage: http://www.nmt.edu/~shippy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: prompt weirdness
2001-03-20 21:59 prompt weirdness Jeff Shipman
@ 2001-03-22 5:44 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2001-03-22 5:44 UTC (permalink / raw)
To: Jeff Shipman, zsh-users
On Mar 20, 2:59pm, Jeff Shipman wrote:
} Subject: prompt weirdness
}
} PROMPT="%n@%m:%B%30<...<%~%b%(!.#.>) "
}
} su() { ZDOTDIR=/u/jeff command su "$@" -c zsh }
}
} I am not seeing the # at the end. Instead, I
} get only a single space after my home directory.
}
} Why is this happening?
Only one possibility comes to mind: The "zsh" found when su does its
path search is not the one you expect. If, for example, /bin/zsh is
a 3.0.x version, and that's what "su -c zsh" finds and executes, then
you'd get exactly the behavior you describe, because 3.0.x doesn't have
the %(!...) test.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-22 5:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-20 21:59 prompt weirdness Jeff Shipman
2001-03-22 5:44 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).