1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-07 05:31:18 +00:00

Add instructions for Hilbish shell

PassiveLemon 2023-12-22 20:00:14 -05:00
parent 1bfde59947
commit a8ddb5f764

@ -91,4 +91,17 @@ in wsl you may also have to put `export PATH="$PATH:~/.local/bin/"` before the a
```
export PATH="$PATH:~/.local/bin/"
eval $(thefuck --alias fuck)
```
# Hilbish
Make sure you import the commander library:
```lua
local commander = require 'commander'
```
`hilbish.history.get(hilbish.history.size() - 1)` will load the last typed command so you can put it into an alias here:
```lua
commander.register("fuck", function()
os.execute("thefuck " .. hilbish.history.get(hilbish.history.size() - 1))
end)
```