36 ms·
Here's a stupid one. I keep getting lost what I was doing in each of 20 screen windows. So I keep a "goal" per shell that appears in the $PS1 for each. goa
by imglorp 13y ago
Here's a stupid one. I keep getting lost what I was doing in each of 20 screen windows. So I keep a "goal" per shell that appears in the $PS1 for each.
goal ()
{
if [ $# -gt 0 ]; then
MYGOAL="$@";
else
echo Your current goal is: $MYGOAL;
fi
}
That's it. Put ($MYGOAL) in your PS1 and type "goal fix this bug" or "goal working on that thing". No args just echos back (redundant).