From 873289224e135c0a89c3d4dd58a0aba5122544dd Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Fri, 19 Feb 2016 07:53:38 -0800 Subject: [PATCH] Grep the vagrantfile to check for vmware_fusion It's naive, but more likely successful than checking for vmrun, which most people prolly never link. --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 1530aae..daf943b 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -193,7 +193,7 @@ function __bobthefish_prompt_vagrant -S -d 'Display Vagrant status' if [ -f Vagrantfile ] if type -q VBoxManage __bobthefish_prompt_vagrant_vbox - else if type -q vmrun + else if grep vmware_fusion Vagrantfile >/dev/null ^&1 __bobthefish_prompt_vagrant_vmware end end