Skip to content

Commit

Permalink
Switch to steeef_simplified prompt which doesn't seem to be problemat…
Browse files Browse the repository at this point in the history
…ic like the skwp prompt with newer prezto installs [Fix #272 #286]
  • Loading branch information
Yan Pritzker committed Aug 4, 2013
1 parent a729ef2 commit 8004dd2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
9 changes: 7 additions & 2 deletions zsh/prezto-themes/prompt_steeef_simplified_setup
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 "$@"
Expand Down
2 changes: 1 addition & 1 deletion zsh/theme.zsh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
prompt skwp
prompt steeef_simplified

0 comments on commit 8004dd2

Please sign in to comment.