dotfiles/home/.local/bin/heads

4 lines
95 B
Bash
Executable file

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