Created
September 12, 2023 16:54
-
-
Save 13x1/7267eb610f2c1f1b845652899025c5f0 to your computer and use it in GitHub Desktop.
eval: an evil nushell hack. i am so sorry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def eval [str: string] { | |
let uuid = (uuidgen) | |
echo $str $"| to json | save /tmp/($uuid)-res.json" | save $"/tmp/($uuid)" | |
nu $"/tmp/($uuid)"; open $"/tmp/($uuid)-res.json" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment