2010-10-03 01:49:16 +08:00
|
|
|
# user, host, full path, and time/date
|
|
|
|
# on two lines for easier vgrepping
|
2018-08-08 02:42:02 +08:00
|
|
|
# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
|
2010-10-03 01:49:16 +08:00
|
|
|
|
2013-04-24 21:50:48 +08:00
|
|
|
function retcode() {}
|
|
|
|
|
2010-10-03 01:49:16 +08:00
|
|
|
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%Y-%m-%d %I:%M:%S"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
|
2013-04-17 01:10:21 +08:00
|
|
|
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}%?$(retcode)%{\e[0;34m%}%B]%{\e[0m%}%b '
|
2011-09-20 16:16:51 +08:00
|
|
|
|