Posted by: spiralofhope | 2009-04-23
zsh ANSI prompt
Posted in Documentation, HOWTO, Linux, Misadventures | Tags: ansi, bitching, bitter, color, colour, Documentation, prompt, zsh
Posted in Documentation, HOWTO, Linux, Misadventures | Tags: ansi, bitching, bitter, color, colour, Documentation, prompt, zsh
For bright versions of the colors, try “fg_bold” instead of “fg”: PS1=”%{$fg_bold[red]%}%n%{$reset_color%}@%{$fg_bold[cyan]%}%m %{$fg_bold[yellow]%}%~ %{$reset_color%}%% ”
The secret sauce is in using “fg_bold” instead of “fg” for the color names.
By: willfe on 2011-04-12
at 1:23 pm
Hey, thanks a lot! In my ~/.zshrc I did:
One day I should bother with a more complex prompt.. I’ve been pretty minimal.
By: spiralofhope on 2011-04-15
at 8:34 am
thanks a lot for the tips on editing PS1 in zsh!
Previously, I have used something called TerminalColours.bundle which allows further coloring of the terminal by having folders appear one color, executables another, etc in your Terminal environment. Now I use Visor which includes this bundle.
Unfortunately, when i began using zsh instead of bash, the colors went away. In order to make colors work originally in bash, i had to add the lines
to my .bash_profile in my home folder. I’ve tried making a .profile and .zsh_profile as equivalents but this didn’t do the trick!
do you have any ideas? your help is much appreciated, and i believe the solution is closely tied with this topic of changing colors which you have talked about ; )
By: mareoraft on 2010-09-05
at 6:35 pm
I think these were the applications you mentioned:
TerminalColors:
http://www.culater.net/software/TerminalColors/TerminalColors.php
Visor:
http://visor.binaryage.com/
I assume you’re on a mac. If so, then things may be wildly different for you.
I only see something vaguely similar with my environment variables..
But your issue is at the shell level. This should probably work:
If so, then it’s an issue at the ls level. Maybe this works?:
If that works then I’d suggest just solving this with an alias.
If not, then I have no clue, sorry.
By: spiralofhope on 2010-09-06
at 4:42 pm