mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Add presentation
This commit is contained in:
parent
6011322405
commit
d52bd8ebfa
1 changed files with 10 additions and 0 deletions
|
|
@ -13,6 +13,14 @@ add-zsh-hook precmd prompt_vcs
|
||||||
add-zsh-hook precmd prompt_virtualenv
|
add-zsh-hook precmd prompt_virtualenv
|
||||||
add-zsh-hook precmd prompt_projectname
|
add-zsh-hook precmd prompt_projectname
|
||||||
|
|
||||||
|
presentation () {
|
||||||
|
toilet -f future -F metal "$HOST $(date +%H:%m:%S)" 2> /dev/null && {
|
||||||
|
w
|
||||||
|
} || {
|
||||||
|
echo "This theme requires toilet command, please install"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
detect_pdir () {
|
detect_pdir () {
|
||||||
pdir=$(git rev-parse --show-toplevel 2> /dev/null )
|
pdir=$(git rev-parse --show-toplevel 2> /dev/null )
|
||||||
}
|
}
|
||||||
|
|
@ -84,4 +92,6 @@ local ret_status="%(?:%{$fg_bold[green]%}⏺:%{$fg_bold[red]%}⏺)"
|
||||||
PROMPT='${ret_status}%{$fg[blue]%}${PROMPT_HOST}${pname}%{$fg_bold[green]%}%p %{$fg_bold[yellow]%}%2~ ▶%{$reset_color%} '
|
PROMPT='${ret_status}%{$fg[blue]%}${PROMPT_HOST}${pname}%{$fg_bold[green]%}%p %{$fg_bold[yellow]%}%2~ ▶%{$reset_color%} '
|
||||||
RPROMPT='%F{blue}$(pwd)%(?: :%{$fg_bold[red]%} %? )%F{yellow}[%*]%f'
|
RPROMPT='%F{blue}$(pwd)%(?: :%{$fg_bold[red]%} %? )%F{yellow}[%*]%f'
|
||||||
|
|
||||||
|
presentation
|
||||||
|
|
||||||
# vim: set ft=zsh ts=4 sw=4 et:
|
# vim: set ft=zsh ts=4 sw=4 et:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue