Add timestamp

This commit is contained in:
Henrik Lissner 2013-07-27 23:11:52 -04:00
parent be134b630e
commit 54ca66d8e5

View file

@ -22,8 +22,9 @@ ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}+%{$fg[white]%}"
################## ##################
prompt() { prompt() {
echo -n "%{$fg[red]%}" echo -n "%{$FG[242]%}"
echo -n "%{$FX[bold]%}" echo -n "$(date '+%H:%M:%S')"
echo -n "%{$FG[white]%}"
# Show the hostname if this is an SSH session # Show the hostname if this is an SSH session
if [[ -n $SSH_CLIENT ]]; then if [[ -n $SSH_CLIENT ]]; then
@ -31,7 +32,9 @@ prompt() {
fi fi
# The prompt # The prompt
echo -n "\$ %{$FX[no-bold]%}" echo -n "%{$fg[red]%}"
echo -n "%{$FX[bold]%}"
echo -n " \$ %{$FX[no-bold]%}"
} }
rprompt() { rprompt() {