1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-22 04:48:57 +00:00

48 Commits

Author SHA1 Message Date
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
Alex Nastetsky
2e91158091 Fixed UnicodeDecodeError 2015-04-17 16:30:46 -04:00
Vladimir Iakovlev
2f28681b62 Merge pull request #7 from fordhurley/print-command
Print out the fucking command before running it
2015-04-17 22:30:26 +02:00
Lars Michelsen
99e418f852 Added rule for misspelled cd.. command 2015-04-17 22:14:01 +02:00
nvbn
48831fa850 #1 Don't fuck twice 2015-04-17 22:09:46 +02:00
Ford Hurley
11cbb9e1f7 Print out the fucking command before running it 2015-04-17 16:07:50 -04:00
nvbn
1de9c5f77b Add information about writting yourself rules, revert no_command changes 2015-04-17 17:01:30 +02:00
nvbn
1503dcf294 Make no_command work only when apt available 2015-04-17 16:36:38 +02:00
nvbn
2eb777a5bb Add python 2 support 2015-04-17 16:24:03 +02:00
nvbn
e7b377a310 Add handler for "is not a git command" 2015-04-08 21:20:11 +02:00
nvbn
9ed022d67f Pass settings to the rules 2015-04-08 21:08:35 +02:00
nvbn
173a4300b4 Fix sudo after npm errors 2015-04-08 19:16:15 +02:00
nvbn
8e5cc9d73a Add command not found handler 2015-04-08 19:00:03 +02:00
nvbn
71f1f4224b Initial commit 2015-04-08 18:15:49 +02:00