From c1c0a2e6c9a47ef3bf10936b7e0eaa29fb299d36 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Mon, 26 Feb 2024 16:59:44 -0600 Subject: [PATCH] added custom command to query cheat.sh --- nushell/.config/nushell/config.nu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nushell/.config/nushell/config.nu b/nushell/.config/nushell/config.nu index 607f994..e60aeee 100644 --- a/nushell/.config/nushell/config.nu +++ b/nushell/.config/nushell/config.nu @@ -871,6 +871,11 @@ def slideshow [delay: int = 10] { feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay } +#look up something on cheat.sh +def cheat [query: string] { + curl $"cheat.sh/($query)" +} + # parses git log into a nushell table. def --wrapped git-log [...rest] { git log --pretty=%h»¦«%H»¦«%s»¦«%aN»¦«%aE»¦«%aD ...$rest | lines | split column "»¦«" commit full-commit subject name email date | upsert date {|d| $d.date | into datetime}