]> arthur.barton.de Git - ax-zsh.git/commitdiff
googler: Limit number of results depending on LINES available
authorAlexander Barton <alex@barton.de>
Sun, 21 Mar 2021 16:11:48 +0000 (17:11 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 21 Mar 2021 16:40:56 +0000 (17:40 +0100)
plugins/googler/googler.zshrc

index 48430dfad7413833e21e5f4c0fab03b9c68c0d60..79427847e4e046dc259f07770b7d72ed81181f57 100644 (file)
@@ -4,4 +4,4 @@
 # Make sure that "googler(1)" are installed
 (( $+commands[googler] )) || return
 
-alias g="googler"
+alias g="googler -n $((LINES/6))"