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