Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: