Commit Graph

63 Commits

Author SHA1 Message Date
nvbn 8376fed459 Merge branch 'master' of github.com:nvbn/thefuck 2015-04-22 06:03:34 +02:00
nvbn 5d424dad88 Use colorama for colored output 2015-04-22 06:03:06 +02:00
nvbn 126194ec2e Put errors in stderr instead of "echo ..." in stdout 2015-04-22 05:29:44 +02:00
Dugucloud 79fb7c987c Added sudo rule for Fedora yum's output. 2015-04-22 09:26:45 +08:00
Vladimir Iakovlev a794b58729 Merge pull request #86 from dionyziz/switch_lang_greek
Add Greek to switch lang
2015-04-21 22:19:23 +02:00
nvbn d1416a6c2a #82 Remove unned print, fix python 3 support 2015-04-21 22:10:53 +02:00
nvbn 3df77b5bad Merge branch 'ssh-known-hosts' of git://github.com/nicwest/thefuck into nicwest-ssh-known-hosts 2015-04-21 22:06:21 +02:00
Dionysis Zindros 4b8d4926aa Add Greek to switch lang 2015-04-21 22:00:05 +02:00
Nic West 943613a194 add thing for when known hosts have changed 2015-04-21 17:05:52 +01:00
nvbn 888756d519 #74 Don't fail when rule throws exception 2015-04-21 14:40:52 +02:00
nvbn d5b4bddc4c #74 Don't fail when runned without args 2015-04-21 14:26:45 +02:00
nvbn d09238a6e8 Merge branch 'master' of github.com:nvbn/thefuck
Conflicts:
	thefuck/rules/sudo.py
2015-04-21 14:23:31 +02:00
Dugucloud de4b774134 Added a string which could be thrown by Fedora's new dnf package manager. 2015-04-21 19:43:10 +08:00
Soheil Rashidi 3af5c80d29 Add 'root privilege' pattern to sudo rule. 2015-04-21 12:57:35 +04:30
nvbn bd5f5045aa #71 Handle iterdir iterator fails 2015-04-21 08:57:35 +02:00
nvbn 798928b5ad #71 Don't fail on non-exists dir in $PATH 2015-04-21 08:45:45 +02:00
nvbn f2392349f7 #71 Handle OSError more gratefully 2015-04-21 08:38:52 +02:00
nvbn 478fa4cd09 #71 Not fail on os error 2015-04-21 08:30:48 +02:00
Vladimir Iakovlev 273fc097bd Update switch_lang.py 2015-04-21 07:16:36 +02:00
Vladimir Iakovlev 00d0987cf5 Merge pull request #70 from fzerorubigd/master
add persian language to switch lang rule
2015-04-21 07:15:53 +02:00
fzerorubigd 3798c341d5 add persian language to switch lang rule
refs #28
2015-04-21 09:42:13 +04:30
nvbn e3edea05ed #24 Make no_command crossplatform 2015-04-21 06:55:47 +02:00
nvbn ab8ac23749 Fix python 3 support 2015-04-21 06:33:51 +02:00
nvbn e7d5d93056 #68 Add rule for switching layout 2015-04-21 06:26:15 +02:00
nvbn 5ccf163594 command.script now unicode 2015-04-21 06:24:40 +02:00
nvbn e822fade4c #10 Add require_confirmation option 2015-04-21 05:30:15 +02:00
nvbn 7888315196 #52 Use cp -a, add tests 2015-04-20 22:00:37 +02:00
nvbn 3665a23b9a Merge branch 'master' of git://github.com/NabeelValapra/thefuck into NabeelValapra-master 2015-04-20 21:54:29 +02:00
nvbn 2db0a215b4 Fix fuck when more than one git command available 2015-04-20 21:48:54 +02:00
Vladimir Iakovlev f6f6e2223c Merge pull request #62 from sjuvekar/master
A special case for 'Permission denied' error msg when trying to execute ...
2015-04-20 18:52:35 +02:00
Nils Winkler c0c584b13a mkdir -p
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
2015-04-20 18:38:03 +02:00
Sudeep Juvekar cb31a1f7d0 A special case for 'Permission denied' error msg when trying to execute a
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
2015-04-20 12:00:08 -04:00
Sudeep Juvekar 411aea67f7 A special case for 'Permission denied' error msg when trying to execute a
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
2015-04-20 10:49:39 -04:00
nvbn 36d9e13ece #55 Add tests and check for command not found 2015-04-20 15:46:02 +02:00
nvbn 50dfef1d1b Merge branch 'master' of git://github.com/dannion/thefuck into dannion-master 2015-04-20 15:37:45 +02:00
dannion 2b08a136b5 add a rule to run the script you enter by add './' in command's prefix 2015-04-20 19:48:27 +08: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
Nabeel Valapra f9f757f618 Added rule:cp_omitting_directory 2015-04-20 14:34:09 +05:30
Felix Yan a2c086ed73 sudo rule: add support for "Operation not permitted" errors 2015-04-19 22:53:09 +08:00
Felix Yan 0d577ffa83 sudo rule: add support for mtr 2015-04-19 11:57:01 +08:00
Max Dietrich 650c3f4e45 Fixed grammar in comments for easier understanding 2015-04-19 02:09:53 +02:00
nvbn 8b2ba5762c Add support of lein "is not task" 2015-04-18 23:19:34 +02:00
nvbn e745f3d4a9 #21 Add timeout for getting previous command output 2015-04-18 22:50:18 +02:00
nvbn a84671dd3b #20 Fix UnicodeDecodeError in no_command 2015-04-18 21:46:17 +02:00
nvbn b0d353c699 #22 Simplify adding patterns for the sudo rule 2015-04-18 21:30:48 +02:00
nvbn 235b31e176 #22 Get stderr and stdout with LANG=C 2015-04-18 21:27:43 +02:00
nvbn 9518416a2f #17 Fix creating configuration files/dirs 2015-04-18 21:16:49 +02:00
tpltnt 14f0817a99 added support for FreeBSD/PCBSD 'pkg' to sudo rule 2015-04-18 08:45:48 +02:00
Vladimir Iakovlev 484480947e Merge pull request #9 from alexnastetsky/master
Fixed UnicodeDecodeError
2015-04-17 22:41:50 +02:00
Vladimir Iakovlev 0ee5b8414b Merge pull request #8 from LaMi-/master
Adds rule for cd.. and .gitignore for vim tmp files
2015-04-17 22:32:04 +02:00