mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Added settings variables to allow date and docker display to be made conditional
This commit is contained in:
parent
43af67f68a
commit
d730526c07
@ -68,12 +68,14 @@ set -g theme_display_git_untracked no
|
|||||||
set -g theme_display_git_ahead_verbose yes
|
set -g theme_display_git_ahead_verbose yes
|
||||||
set -g theme_git_worktree_support yes
|
set -g theme_git_worktree_support yes
|
||||||
set -g theme_display_vagrant yes
|
set -g theme_display_vagrant yes
|
||||||
|
set -g theme_display_docker_machine no
|
||||||
set -g theme_display_hg yes
|
set -g theme_display_hg yes
|
||||||
set -g theme_display_virtualenv no
|
set -g theme_display_virtualenv no
|
||||||
set -g theme_display_ruby no
|
set -g theme_display_ruby no
|
||||||
set -g theme_display_user yes
|
set -g theme_display_user yes
|
||||||
set -g theme_display_vi yes
|
set -g theme_display_vi yes
|
||||||
set -g theme_display_vi_hide_mode default
|
set -g theme_display_vi_hide_mode default
|
||||||
|
set -g theme_display_date no
|
||||||
set -g theme_title_display_process yes
|
set -g theme_title_display_process yes
|
||||||
set -g theme_title_display_path no
|
set -g theme_title_display_path no
|
||||||
set -g theme_title_use_abbreviated_path no
|
set -g theme_title_use_abbreviated_path no
|
||||||
|
@ -293,10 +293,9 @@ function __bobthefish_prompt_vagrant_vmware -S -d 'Display VMWare Vagrant status
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __bobthefish_prompt_docker -S
|
function __bobthefish_prompt_docker -S
|
||||||
if set -q DOCKER_MACHINE_NAME
|
[ "$theme_display_docker_machine" = 'no' -o -z "$DOCKER_MACHINE_NAME" ]; and return
|
||||||
__bobthefish_start_segment $__bobthefish_vagrant fff --bold
|
__bobthefish_start_segment $__bobthefish_vagrant fff --bold
|
||||||
echo -ns $DOCKER_MACHINE_NAME ' '
|
echo -ns $DOCKER_MACHINE_NAME ' '
|
||||||
end
|
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ function __bobthefish_cmd_duration -S -d 'Show command duration'
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __bobthefish_timestamp -S -d 'Show the current timestamp'
|
function __bobthefish_timestamp -S -d 'Show the current timestamp'
|
||||||
|
[ "$theme_display_date" = "no" ]; and return
|
||||||
set -q theme_date_format
|
set -q theme_date_format
|
||||||
or set -l theme_date_format "+%c"
|
or set -l theme_date_format "+%c"
|
||||||
|
|
||||||
@ -41,5 +42,6 @@ function fish_right_prompt -d 'bobthefish is all about the right prompt'
|
|||||||
set_color $fish_color_autosuggestion
|
set_color $fish_color_autosuggestion
|
||||||
|
|
||||||
__bobthefish_cmd_duration
|
__bobthefish_cmd_duration
|
||||||
|
__bobthefish_timestamp
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user