From b6148a913261cafe224f41558437ed6ed06a98db Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 31 May 2018 17:26:41 -0700 Subject: [PATCH] Revert "[taffybar] Use stack run instead of your own thing" This reverts commit d626da4796250a288252b101f8e9f6176f7866df. --- dotfiles/lib/bin/taffybar | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dotfiles/lib/bin/taffybar b/dotfiles/lib/bin/taffybar index c3b3e0bd..3d838f78 100755 --- a/dotfiles/lib/bin/taffybar +++ b/dotfiles/lib/bin/taffybar @@ -2,4 +2,12 @@ # -*- mode:sh cd "$HOME/.config/taffybar" -stack run +stack install + +if command_exists "imalison-taffybar"; then + imalison-taffybar "$@" +else + # Move .lib/bin to the end of PATH so that this script is not called again + add_to_path "$HOME/.lib/bin" --after + taffybar "$@" +fi