From cc1569f57cd31a79e49258a2beeef9cc41eb9d66 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Wed, 9 Mar 2016 16:54:32 -0800 Subject: [PATCH] fix `__bobthefish_vagrant_ids` when no id present because `cat` with no arguments just hangs out at stdin waiting for you to type something. --- fish_prompt.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 3def47e..7e49847 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -198,7 +198,9 @@ function __bobthefish_prompt_vagrant -S -d 'Display Vagrant status' end function __bobthefish_vagrant_ids -S -d 'List Vagrant machine ids' - cat .vagrant/machines/**/id + for id in .vagrant/machines/**/id + cat $id + end end function __bobthefish_prompt_vagrant_vbox -S -d 'Display VirtualBox Vagrant status'