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.
|
#!/usr/bin/env zsh
|
|
#
|
|
current=$(bartib current)
|
|
lines=$(echo "$current" | wc -l)
|
|
|
|
if [ "$lines" -gt 1 ]; then
|
|
line=$(bartib current | sed -n 3p)
|
|
words=(`echo $line | sed 's/ /\n/g'`)
|
|
echo " $words[-2]"
|
|
fi
|