You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
302 B
Bash
12 lines
302 B
Bash
2 years ago
|
#!/usr/bin/env zsh
|
||
|
TMPFILE=$(mktemp)
|
||
|
|
||
|
tt --no-color status &> $TMPFILE
|
||
|
local current=$(cat $TMPFILE)
|
||
|
|
||
|
if [[ $current = 'You have been working on '* ]]; then
|
||
|
local currTemp=${current:s/You have been working on //}
|
||
|
local project=$(echo $currTemp | head -n1 | cut -d " " -f1)
|
||
|
echo " $project"
|
||
|
fi
|