Skip to content

Instantly share code, notes, and snippets.

@qinshulei
Created August 31, 2015 08:29
Show Gist options
  • Select an option

  • Save qinshulei/d5e346bd970e1fe226db to your computer and use it in GitHub Desktop.

Select an option

Save qinshulei/d5e346bd970e1fe226db to your computer and use it in GitHub Desktop.
show history no in zsh
# Prompt format: \n # HISTORY_NMUBER USER at MACHINE in DIRECTORY on git:BRANCH STATE [TIME] \n $
PROMPT="
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \
%{$fg[red]%}%h%{$reset_color%} \
%{$fg[cyan]%}%n \
%{$fg[white]%}at \
%{$fg[green]%}$(box_name) \
%{$fg[white]%}in \
%{$terminfo[bold]$fg[yellow]%}${current_dir}%{$reset_color%}\
${hg_info}\
${git_info} \
%{$fg[white]%}[%*]
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment