#!/bin/bash

# thanks Carl

w=$(stty size < /dev/tty | awk '{print $2-1}')

if [ $# -gt 0 ] ; then
  "$@" | expand | cut -c-$w
else
  expand | cut -c-$w
fi
