mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-11-04 00:52:04 +00:00 
			
		
		
		
	fix(typo): fix a silly typo
@@ -19,12 +19,12 @@ Add this function to `config.fish`:
 | 
				
			|||||||
function fuck -d 'Correct your previous console command'
 | 
					function fuck -d 'Correct your previous console command'
 | 
				
			||||||
    set -l exit_code $status
 | 
					    set -l exit_code $status
 | 
				
			||||||
    set -l eval_script (mktemp 2>/dev/null ; or mktemp -t 'thefuck')
 | 
					    set -l eval_script (mktemp 2>/dev/null ; or mktemp -t 'thefuck')
 | 
				
			||||||
    set -l fucked_up_commandd $history[1]
 | 
					    set -l fucked_up_command $history[1]
 | 
				
			||||||
    thefuck $fucked_up_commandd > $eval_script
 | 
					    thefuck $fucked_up_command > $eval_script
 | 
				
			||||||
    . $eval_script
 | 
					    . $eval_script
 | 
				
			||||||
    rm $eval_script
 | 
					    rm $eval_script
 | 
				
			||||||
    if test $exit_code -ne 0
 | 
					    if test $exit_code -ne 0
 | 
				
			||||||
        history --delete $fucked_up_commandd
 | 
					        history --delete $fucked_up_command
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user