Skip to content

Instantly share code, notes, and snippets.

@daniel-fanjul-alcuten
Last active December 11, 2015 20:28
Show Gist options
  • Save daniel-fanjul-alcuten/4655614 to your computer and use it in GitHub Desktop.
Save daniel-fanjul-alcuten/4655614 to your computer and use it in GitHub Desktop.
alias down, I don't like to open a new terminal in a a large screen and see the prompt in the top
alias down='yes "" | head -$(($LINES - 2))'
alias down='seq $(($LINES - 2))'
alias down='yes "|" | head -$(($LINES - 3)) && echo v'
alias down='echo -e "\033[6n"; read -s -d R foo; lines=$((LINES - $(echo $foo | cut -d \[ -f 2 | cut -d \; -f 1) - 2)); while [ $lines -gt 0 ]; do echo \|; lines=$((lines - 1)); done; echo v'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment