From abc2d412cbd393bf715d13d913a707305c2233d8 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Tue, 27 Apr 2021 19:34:35 +0500 Subject: Watson helpers. --- wstart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 wstart (limited to 'wstart') diff --git a/wstart b/wstart new file mode 100755 index 0000000..75c2918 --- /dev/null +++ b/wstart @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +read -p 'Enter project name (press Enter to select): ' +if [[ -z $REPLY ]] ; then + PROJECT=$(watson projects | fzf --reverse --tac --no-sort) +else + PROJECT="$REPLY" +fi +TAGS=$(watson tags | fzf --reverse --multi | awk '{print "+" $0}' | paste -sd " " -) + +watson stop >/dev/null 2>&1 || true +watson start $PROJECT $TAGS -- cgit v1.2.3