mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Added segment to display DOCKER_MACHINE_NAME (indicating which docker daemon we're talking to)
This commit is contained in:
parent
da7e2f1b49
commit
43af67f68a
@ -292,6 +292,14 @@ function __bobthefish_prompt_vagrant_vmware -S -d 'Display VMWare Vagrant status
|
||||
set_color normal
|
||||
end
|
||||
|
||||
function __bobthefish_prompt_docker -S
|
||||
if set -q DOCKER_MACHINE_NAME
|
||||
__bobthefish_start_segment $__bobthefish_vagrant fff --bold
|
||||
echo -ns $DOCKER_MACHINE_NAME ' '
|
||||
end
|
||||
set_color normal
|
||||
end
|
||||
|
||||
function __bobthefish_prompt_status -S -a last_status -d 'Display symbols for a non zero exit status, root and background jobs'
|
||||
set -l nonzero
|
||||
set -l superuser
|
||||
@ -699,6 +707,7 @@ function fish_prompt -d 'bobthefish, a fish theme optimized for awesome'
|
||||
__bobthefish_prompt_status $last_status
|
||||
__bobthefish_prompt_vi
|
||||
__bobthefish_prompt_vagrant
|
||||
__bobthefish_prompt_docker
|
||||
__bobthefish_prompt_user
|
||||
__bobthefish_prompt_rubies
|
||||
__bobthefish_prompt_virtualfish
|
||||
|
Loading…
Reference in New Issue
Block a user