dotfiles/bin/heads

3 lines
96 B
Bash
Executable file

#!/bin/sh
# Head as much as fits on screen
exec head -n "$(echo "$(tput lines) - 5" | bc)" "$@"