4 ms·
If you're less adventurous, and use fish/tmux, you could try something like: # config.fish function fuck thefuck (history | head -n1) | tmux load-buf
by jnetterf 11y ago
If you're less adventurous, and use fish/tmux, you could try something like:
# config.fish
function fuck
thefuck (history | head -n1) | tmux load-buffer -
tmux paste-buffer -s \0
end
This will paste the command The Fuck suggests without a return so you can audit the corrected command before running it.