Skip to content

Commit

Permalink
-x flag added to clear command
Browse files Browse the repository at this point in the history
In some terminal `clear` default behaviour disables scrolling thought
history. `-x` flag to prevent from it.

#4
  • Loading branch information
Sergey Valiev committed Nov 29, 2017
1 parent 7d18938 commit 8ffba4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion almostontop.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
function almostontop_preexec
{
if [ "x$ALMOSONTOP" = "xtrue" ]; then
clear
clear -x
# print PROMPT and command itself on the top
print -P "$prompt$fg[$ALMOSTONTOP_COLOR]${(z)1}$reset_color"
fi
Expand Down

0 comments on commit 8ffba4e

Please sign in to comment.