diff --git a/README.md b/README.md index 8dad3282..c71663f7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/zsh/prezto-themes/prompt_steeef_simplified_setup b/zsh/prezto-themes/prompt_steeef_simplified_setup index 1593c602..14b16da9 100644 --- a/zsh/prezto-themes/prompt_steeef_simplified_setup +++ b/zsh/prezto-themes/prompt_steeef_simplified_setup @@ -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 "$@" diff --git a/zsh/theme.zsh b/zsh/theme.zsh index 50e7eee4..220a0de8 100644 --- a/zsh/theme.zsh +++ b/zsh/theme.zsh @@ -1 +1 @@ -prompt skwp +prompt steeef_simplified