lucasvazq / dotfiles

A minimalistic dotfiles with astronomical flavor 🪐
GNU General Public License v3.0
7 stars 1 forks source link

Add new commands #43

Closed lucasvazq closed 4 years ago

lucasvazq commented 4 years ago

Fixes

24

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?
}