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

2 Commits

Author SHA1 Message Date
Jens Timmerman
2d6194c9d7 Update test_rm_dir.py 2015-04-20 18:56:25 +02:00
Nils Winkler
0b7fd6ae2a Added rm -rf support
When someone tries to remove a directory without specifying `-rf`, e.g.

    $ mkdir foo
    $ rm foo

the shell refuses to remove the directory with an error:

    rm: foo: is a directory

Instead, you need to use

    $ rm -rf foo

This rule adds fuck support for this:

    $ mkdir foo
    $ rm foo
    rm: foo: is a directory
    $ fuck
    rm -rf foo
2015-04-20 12:32:32 +02:00