hrl() {
# Show logs of a Heroku App
#
# Args:
# $1: Heroku App
# $2 (optional): Mode
if [ -z "$1" ]; then
echo Miss Heroku App
return 1
fi
local file
file=$(mktemp)
heroku logs -t -a "$1" &> "$file" & # Se necesita el &?
tail -f "$file" | grep --line-buffered app[?]
# --force-colors, or custom colors for grep?
}
Fixes
24