23 lines
611 B
Bash
23 lines
611 B
Bash
# Prompt
|
|
autoload -U colors
|
|
colors
|
|
|
|
date_color="red"
|
|
user_color="green"
|
|
host_color="yellow"
|
|
path_color="blue"
|
|
status_color="magenta"
|
|
sep_color="white"
|
|
sh_color="white"
|
|
ret_color="cyan"
|
|
|
|
|
|
stats="(%F{$status_color}\$LOADAVG%F{$sep_color} - %F{$status_color}\$MEM%F{$sep_color})"
|
|
userhost="(%B%F{$user_color}%n%F{$sep_color}@%F{$host_color}%m%F{$sep_color} +%F{$ret_color} %?%b%F{$sep_color})"
|
|
date="(%F{$date_color}%D{%d/%m/%y} %F{$sep_color}- %F{$date_color}%*%F{$sep_color})"
|
|
pspath="(%F{$path_color}%~%F{$sep_color})"
|
|
cli="%F{$sh_color}%#%f%b "
|
|
|
|
PS1="%F{$sep_color}┌ $userhost $date $stats $pspath
|
|
└$cli"
|