commit 08e5e79f9d710ac28012eb980a4aa53c2c41857c parent cf395b0dd00fe355b1a2d7465bb58889c107858e Author: Alex Balgavy <alex@balgavy.eu> Date: Fri, 17 Sep 2021 09:58:41 +0200 cheat: use light theme Diffstat:
M | scripts/cheat | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/cheat b/scripts/cheat @@ -5,4 +5,6 @@ if ! command -v curl &>/dev/null; then fi ! [ $# -ge 1 ] && echo "Argument required." && exit 1 -curl -Ls cheat.sh/"$1" | less -iR +if [ -f ~/.config/dark-theme ]; then query='' +else query='?style=trac'; fi +curl -Ls cheat.sh/"$1$query" | less -iR