Last active
December 11, 2015 20:28
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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