1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-19 17:18:42 +00:00

3 Commits

Author SHA1 Message Date
Scott Colby
ab1833b388 Fix test_localization_possible on Python 2. 2018-07-10 14:18:02 -07:00
Scott Colby
23b27c16dc First attempt at adding internationalization to the cat error message detection.
Fix the tests for inside virtualenvs and add warning if localization appears impossible.

Remove the language warnings for en_US locales and make sure they appear for others.
2018-07-10 14:03:58 -07:00
Scott Colby
fe0785bc42 Create cat_dir rule for replacing cat with ls (#823)
* Create `cat_dir` rule for replacing `cat` with `ls` when you try to run `cat` on a directory.

* Changed to string methods in response to feedback.

Added a test to make sure lines like 'cat cat' don't become 'ls ls'.

Added trailing '\n's to test cases.
2018-07-10 00:51:42 +02:00