mirror of
https://github.com/nvbn/thefuck.git
synced 2025-07-15 03:23:43 +01:00
Add a section on usage with Nushell
@ -104,4 +104,10 @@ local commander = require 'commander'
|
|||||||
commander.register("fuck", function()
|
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)"
|
Reference in New Issue
Block a user