From 4c2e5655fc1b5f90a9d5a70aa2b7f4d14e2eb1c6 Mon Sep 17 00:00:00 2001 From: Devin <90054389+justDeeevin@users.noreply.github.com> Date: Wed, 21 Feb 2024 13:19:04 -0500 Subject: [PATCH] Add a section on usage with Nushell --- Shell-aliases.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Shell-aliases.md b/Shell-aliases.md index 10aacc0..d1fa854 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -104,4 +104,10 @@ local commander = require 'commander' commander.register("fuck", function() os.execute("thefuck " .. hilbish.history.get(hilbish.history.size() - 1)) end) -``` \ No newline at end of file +``` + +# Nushell +Add this alias to your `config.nu`: + +```nu +alias fuck = thefuck $"(history | last 1 | get command | get 0)" \ No newline at end of file