diff --git a/README.md b/README.md index 0803814..e84b76e 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ set -g theme_nerd_fonts yes set -g theme_show_exit_status yes set -g default_user your_normal_user set -g theme_color_scheme dark +set -g theme_right_prompt yes ``` **Title options** @@ -104,6 +105,7 @@ set -g theme_color_scheme dark - `theme_display_vagrant`. This feature is disabled by default, use `yes` to display Vagrant status in your prompt. Please note that only the VirtualBox and VMWare providers are supported. - `theme_show_exit_status`. Set this option to yes to have the prompt show the last exit code if it was non_zero instead of just the exclamation mark. - `theme_git_worktree_support`. If you do any git worktree shenanigans, setting this to `yes` will fix incorrect project-relative path display. If you don't do any git worktree shenanigans, leave it disabled. It's faster this way :) +- `theme_right_prompt`. Use `no` to remove the right side prompt. **Color scheme options** diff --git a/fish_prompt.fish b/fish_prompt.fish index 66c329c..61f32c6 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -35,6 +35,7 @@ # set -g theme_show_exit_status yes # set -g default_user your_normal_user # set -g theme_color_scheme dark +# set -g theme_right_prompt yes # =========================== # Helper methods diff --git a/fish_right_prompt.fish b/fish_right_prompt.fish index c0afd97..73269bc 100644 --- a/fish_right_prompt.fish +++ b/fish_right_prompt.fish @@ -37,6 +37,8 @@ function __bobthefish_timestamp -S -d 'Show the current timestamp' end function fish_right_prompt -d 'bobthefish is all about the right prompt' + [ "$theme_right_prompt" = "no" ]; and return + set -l __bobthefish_left_arrow_glyph \uE0B3 if [ "$theme_powerline_fonts" = "no" ] set __bobthefish_left_arrow_glyph '<'