Skip to content

Commit

Permalink
more efficient way to clear tmux buffer for better scrolling experience
Browse files Browse the repository at this point in the history
Summary: Closes #72

Reviewed By: andrewjcg

Differential Revision: D5570375

Pulled By: yfeldblum

fbshipit-source-id: e04acf51194ea4cb702c46aa4b1135ce2b89e3bb
  • Loading branch information
juchem authored and facebook-github-bot committed Aug 5, 2017
1 parent bfcbeb0 commit a0ec850
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ system_gcc="g++"

lclear() {
if [ "$NO_CLEAR" != "true" ]; then
for f in `seq 0 5000`; do
echo >&2
done
tmux clear-history || true
clear >&2
fi
}

0 comments on commit a0ec850

Please sign in to comment.