mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-01 10:29:25 +00:00
committed by
Sorin Ionescu
parent
5232191cbe
commit
fb9a20591f
@ -10,7 +10,7 @@ To select a prompt theme, add the following to *zshrc*, and replace **name**
|
||||
with the name of the theme you wish to load. Setting it to **random** will load
|
||||
a random theme.
|
||||
|
||||
zstyle ':omz:module:prompt' theme 'name'
|
||||
zstyle ':prezto:module:prompt' theme 'name'
|
||||
|
||||
Authors
|
||||
-------
|
||||
@ -20,5 +20,5 @@ Authors
|
||||
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
||||
|
||||
[1]: http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Prompt-Themes
|
||||
[2]: https://github.com/sorin-ionescu/oh-my-zsh/issues
|
||||
[2]: https://github.com/sorin-ionescu/prezto/issues
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
# Screenshots:
|
||||
# http://i.imgur.com/aipDQ.png
|
||||
# http://i.imgur.com/4CeOj.png
|
||||
#
|
||||
|
||||
function prompt_sorin_precmd {
|
||||
@ -28,23 +28,23 @@ function prompt_sorin_setup {
|
||||
# Add hook for calling git-info before each command.
|
||||
add-zsh-hook precmd prompt_sorin_precmd
|
||||
|
||||
zstyle ':omz:module:editor' completing '%B%F{red}...%f%b'
|
||||
zstyle ':omz:module:editor:keymap:primary' overwrite ' %F{red}♺%f'
|
||||
zstyle ':omz:module:editor:keymap' alternate ' %F{yellow}❮%f%B%F{red}❮%f%b%F{red}❮%f'
|
||||
zstyle ':omz:module:git' action ':%%B%F{yellow}%s%f%%b'
|
||||
zstyle ':omz:module:git' added ' %%B%F{green}✚%f%%b'
|
||||
zstyle ':omz:module:git' ahead ' %%B%F{yellow}⬆%f%%b'
|
||||
zstyle ':omz:module:git' behind ' %%B%F{yellow}⬇%f%%b'
|
||||
zstyle ':omz:module:git' branch ':%F{red}%b%f'
|
||||
zstyle ':omz:module:git' commit ':%F{green}%.7c%f'
|
||||
zstyle ':omz:module:git' deleted ' %%B%F{red}✖%f%%b'
|
||||
zstyle ':omz:module:git' modified ' %%B%F{blue}✱%f%%b'
|
||||
zstyle ':omz:module:git' position ':%F{green}%p%f'
|
||||
zstyle ':omz:module:git' renamed ' %%B%F{magenta}➜%f%%b'
|
||||
zstyle ':omz:module:git' stashed ' %%B%F{cyan}✭%f%%b'
|
||||
zstyle ':omz:module:git' unmerged ' %%B%F{yellow}═%f%%b'
|
||||
zstyle ':omz:module:git' untracked ' %%B%F{white}◼%f%%b'
|
||||
zstyle ':omz:module:git' info \
|
||||
zstyle ':prezto:module:editor' completing '%B%F{red}...%f%b'
|
||||
zstyle ':prezto:module:editor:keymap:primary' overwrite ' %F{red}♺%f'
|
||||
zstyle ':prezto:module:editor:keymap' alternate ' %F{yellow}❮%f%B%F{red}❮%f%b%F{red}❮%f'
|
||||
zstyle ':prezto:module:git' action ':%%B%F{yellow}%s%f%%b'
|
||||
zstyle ':prezto:module:git' added ' %%B%F{green}✚%f%%b'
|
||||
zstyle ':prezto:module:git' ahead ' %%B%F{yellow}⬆%f%%b'
|
||||
zstyle ':prezto:module:git' behind ' %%B%F{yellow}⬇%f%%b'
|
||||
zstyle ':prezto:module:git' branch ':%F{red}%b%f'
|
||||
zstyle ':prezto:module:git' commit ':%F{green}%.7c%f'
|
||||
zstyle ':prezto:module:git' deleted ' %%B%F{red}✖%f%%b'
|
||||
zstyle ':prezto:module:git' modified ' %%B%F{blue}✱%f%%b'
|
||||
zstyle ':prezto:module:git' position ':%F{green}%p%f'
|
||||
zstyle ':prezto:module:git' renamed ' %%B%F{magenta}➜%f%%b'
|
||||
zstyle ':prezto:module:git' stashed ' %%B%F{cyan}✭%f%%b'
|
||||
zstyle ':prezto:module:git' unmerged ' %%B%F{yellow}═%f%%b'
|
||||
zstyle ':prezto:module:git' untracked ' %%B%F{white}◼%f%%b'
|
||||
zstyle ':prezto:module:git' info \
|
||||
'prompt' ' %F{blue}git%f$(coalesce "%b" "%p" "%c")%s' \
|
||||
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
||||
|
||||
|
@ -82,7 +82,7 @@ function prompt_steeef_setup {
|
||||
zstyle ':vcs_info:*:prompt:*' nvcsformats ""
|
||||
|
||||
# Set python-info parameters.
|
||||
zstyle ':omz:module:python' virtualenv '(%v)'
|
||||
zstyle ':prezto:module:python' virtualenv '(%v)'
|
||||
|
||||
# Define prompts.
|
||||
PROMPT="
|
||||
|
@ -9,7 +9,7 @@
|
||||
autoload -Uz promptinit && promptinit
|
||||
|
||||
# Load the prompt theme.
|
||||
zstyle -a ':omz:module:prompt' theme 'prompt_argv'
|
||||
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
|
||||
if (( $#prompt_argv > 0 )); then
|
||||
prompt "$prompt_argv[@]"
|
||||
else
|
||||
|
Reference in New Issue
Block a user