1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-12 07:59:01 +00:00

Add a section on usage with Nushell

Devin 2024-02-21 13:19:04 -05:00
parent a8ddb5f764
commit 4c2e5655fc

@ -105,3 +105,9 @@ commander.register("fuck", function()
os.execute("thefuck " .. hilbish.history.get(hilbish.history.size() - 1)) os.execute("thefuck " .. hilbish.history.get(hilbish.history.size() - 1))
end) end)
``` ```
# Nushell
Add this alias to your `config.nu`:
```nu
alias fuck = thefuck $"(history | last 1 | get command | get 0)"