Account Customisation (zsh): Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 57: Line 57:
At this point it gets a little more complicated. But with a little perseverance you can have your own customised and coloured account. The following are the escape sequences for creating the coloured text.
At this point it gets a little more complicated. But with a little perseverance you can have your own customised and coloured account. The following are the escape sequences for creating the coloured text.


%{\e[1;31m%}
{| border="1" cellpadding="2"
Red text
!width="200"|Colour
%{\e[1;32m%}
!width="225"|Escape Sequence
Green text
|-
%{\e[1;33m%}
|Red text || %{\e[1;31m%}
Yellow text
|-
%{\e[1;34m%}
|Green text || %{\e[1;32m%}
Blue text
|-
%{\e[1;35m%}
|Yellow text || %{\e[1;33m%}
Pink text
|-
%{\e[1;36m%}
|Blue text || %{\e[1;34m%}
Cyan text
|-
%{\e[1;37m%}
|Pink text || %{\e[1;35m%}
Grey text
|-
%{\e[1;38m%}
|Cyan text || %{\e[1;36m%}
Grey text
|-
%{\e[1;39m%}
|Grey text || %{\e[1;37m%}
Grey text
|-
%{\e[1;30m%}
|Grey text || %{\e[1;38m%}
Dark grey text
|-
%{\e[0m%}
|Grey text || %{\e[1;39m%}
Back to normal
|-
|Dark grey text || %{\e[1;30m%}
|-
|Back to normal || %{\e[0m%}
|}


Here's the tricky part. These colour escapes sequences have to be printed to the prompt within the export command.  
Here's the tricky part. These colour escapes sequences have to be printed to the prompt within the export command.  
496

edits

Navigation menu