This fixes#50 and #98.
```bash
$ cd foo/bar/baz
cd: foo: No such file or directory
$ fuck
mkdir -p foo/bar/baz && cd foo/bar/baz
```
Added matchers for both Bash and sh error messages. Depending on your
default shell, the messages might be slightly different.
Happens on the Mac a lot when typing a pipe character (Alt+7), and
keeping the Alt key pressed down for a bit too long, so instead of
Space, you're typing Alt+Space. This rule replaces the Alt+Space with a
simple Space character.
$ ps -ef | grep foo
-bash: grep: command not found
$ fuck
ps -ef | grep foo
When adding directories using `mkdir`, intermediate directories have to
exist, unless you specify the `-p` option:
$ mkdir foo/bar/baz
mkdir: foo/bar: No such file or directory
$ fuck
mkdir -p foo/bar/baz
python scripy.
The script does not have execute permission and/or does not start with !#/usr/...
In that case, pre-pend the command with 'python' keyword.
Change-Id: Idf73ee9cf0a523f51c78672188a457b2fcedc1e6
python scripy.
The script does not have execute permission and/or does not start with !#/usr/...
In that case, pre-pend the command with 'python' keyword.
Change-Id: Idf73ee9cf0a523f51c78672188a457b2fcedc1e6
python scripy.
The script does not have execute permission and/or does not start with !#/usr/...
In that case, pre-pend the command with 'python' keyword.
Change-Id: Idf73ee9cf0a523f51c78672188a457b2fcedc1e6
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