Created
October 18, 2019 22:55
-
-
Save jdoxey/6b72756b8617cde784e6bf66220a141d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PROMPT="[%t] %B%F{green}%n@%m%f:%F{blue}%c %# %f%b" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
%t = Current time of day, in 12-hour, am/pm format
%B = Start bold
%b = end bold
%F{colour} = Start foreground colour
%f = back to default foreground colour
%n = current username
%m = The hostname up to the first '.'
%c = The trailing component of the current working directory
%# = prompt character, i.e. '%' for normal user, '#' for privileged user (root)