Switch to steeef_simplified prompt which doesn't seem to be problematic like the skwp prompt with newer prezto installs [Fix #272 #286]
This commit is contained in:
parent
a729ef2a85
commit
8004dd2025
@ -125,7 +125,6 @@ Make sure you follow the naming convention of `prompt_[name]_setup`
|
||||
touch ~/.zsh.prompts/prompt_mytheme_setup
|
||||
```
|
||||
|
||||
Check out ~/.yadr/zsh/prezto-themes/prompt_skwp_setup for an example of how to write a prompt.
|
||||
See also the [Prezto](https://github.com/sorin-ionescu/prezto) project for more info on themes.
|
||||
|
||||
### Customizing ZSH & Picking a theme
|
||||
@ -135,10 +134,10 @@ In these directories, you can place files to customize things that load before a
|
||||
|
||||
For example, to override the theme, you can do something like this:
|
||||
```
|
||||
echo "prompt skwp" > ~/.zsh.after/prompt.zsh
|
||||
echo "prompt yourprompt" > ~/.zsh.after/prompt.zsh
|
||||
```
|
||||
|
||||
Next time you load your shell, this file will be read and your prompt will be the skwp prompt. Use `prompt -l` to see the available prompts.
|
||||
Next time you load your shell, this file will be read and your prompt will be the youprompt prompt. Use `prompt -l` to see the available prompts.
|
||||
|
||||
### Included ZSH Customizations
|
||||
|
||||
|
@ -27,6 +27,11 @@ function prompt_steeef_simplified_precmd {
|
||||
if (( $+functions[python-info] )); then
|
||||
python-info
|
||||
fi
|
||||
|
||||
# Get ruby information
|
||||
if (( $+functions[ruby-info] )); then
|
||||
ruby-info
|
||||
fi
|
||||
}
|
||||
|
||||
function prompt_steeef_simplified_setup {
|
||||
@ -85,8 +90,8 @@ function prompt_steeef_simplified_setup {
|
||||
zstyle ':prezto:module:python:info:virtualenv' format '(%v)'
|
||||
|
||||
# Define prompts.
|
||||
PROMPT="${_prompt_steeef_simplified_colors[3]}%n%f@${_prompt_steeef_simplified_colors[2]}%m%f ${_prompt_steeef_simplified_colors[5]}%~%f "'${vcs_info_msg_0_}'" "
|
||||
RPROMPT=''
|
||||
PROMPT="${_prompt_steeef_simplified_colors[3]}%n%f@${_prompt_steeef_simplified_colors[2]}%m%f ${_prompt_steeef_simplified_colors[5]}%~%f "'${vcs_info_msg_0_}'"$ "
|
||||
RPROMPT='%F{blue}${ruby_info[version]}'
|
||||
}
|
||||
|
||||
prompt_steeef_simplified_setup "$@"
|
||||
|
@ -1 +1 @@
|
||||
prompt skwp
|
||||
prompt steeef_simplified
|
||||
|
Loading…
x
Reference in New Issue
Block a user