mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-11-04 00:52:04 +00:00 
			
		
		
		
	Add instructions for Hilbish shell
@@ -92,3 +92,16 @@ 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)
 | 
			
		||||
```
 | 
			
		||||
		Reference in New Issue
	
	Block a user