Hi Jeff,
Well, we can't leave you hanging when you show such excellent taste! I wasn't going to comment because you don't provide a hint as to where the numbers in the prompt came from. Now I gather it came from my script but oddly that doesn't help. This looks nothing like what I wrote. My current prompt looks like:
[
hostname@
username]
Library/init/bash
1221 %
As you can see, there's no colon but there is a hard coded '@' character. Thus I'm guessing that either your scripts aren't set up correctly and my prompt isn't being used or you changed it drastically.
You can view the current prompt string by executing the following command:
echo $PS1
That probably won't show everything but it should be a good start. Please output the results of the command and of the following command:
typeset -f trimpath
In all of my scripts, the prompt is set in the ~/Library/init/bash/prompt script. You should source that script after doing the above. If the prompt changes then we can probably assume that the script wasn't being executed. That's not an uncommon problem with bash; sometimes the ~/Library/init/bash/bashrc has to be sourced from both the ~/.bash_profile and the ~/.bashrc scripts.
The "latest" version of those scripts are at
bashrc.tgz. However, I have a confession to make; those scripts haven't been updated in quite a while. The zsh scripts have had several renovations during the same period. I fixed and then stole the Fink functions for prepending and appending elements to a path, which make duplication impossible. I've also added a number of aliases and functions. My zsh scripts are at
zsh.tar.gz. It might be worthwhile to get those and use some of the contents in your bash scripts. Very few of the functions use zsh-only syntax.
I think the prompt is really the gem in those scripts. Bash doesn't have the capability of truncating the path to the current working directory to say the last three directories, so I wrote that. Because of that and for other reasons as well, the prompt part of the zsh startup scripts won't work with bash. That has to be pure bash.
--
Gary
~~~~
New York... when civilization falls apart, remember,
we were way ahead of you.
- David Letterman