JunYoung Gwak
dd9554539f
Added a rule to delete sudo for pacaur. ( #787 )
2018-02-22 22:14:02 +01:00
Omer Katz
b65e3a9aad
Added hebrew the list of keyboard layouts ( #778 )
...
* Added hebrew the list of keyboard layouts.
Fixes #776 .
* Added tests for hebrew layout.
* Fix test.
* Make lint happy.
2018-01-29 08:46:18 +01:00
Joseph Frazier
027b41da59
Add git_merge_unrelated
rule for git merge --allow-unrelated-histories
( #773 )
...
From https://git-scm.com/docs/merge-options#merge-options---allow-unrelated-histories
> By default, `git merge` command refuses to merge histories that do not
share a common ancestor. This option can be used to override this safety
when merging histories of two projects that started their lives
independently.
2018-01-16 20:03:56 -05:00
David Hart
c205683a8d
git_push: Handle branch names containing 'set-upstream' ( #759 )
...
This should fix https://github.com/nvbn/thefuck/issues/723 (IndexError when using bitbucket)
2018-01-06 17:44:03 -05:00
David Hart
7c858fadb3
#762 : handle single quotes in git_branch_exists
...
* handle single quotes in git_branch_exists
* Fix line length
* Fix missing quotes from test
2018-01-05 19:25:08 -02:00
David Hart
797ca1c564
Offer git commit --amend after previous git commit ( #764 )
2018-01-05 16:24:43 -05:00
David Hart
7b10a86267
Add rule for ADB unknown commands ( #765 )
2018-01-05 16:20:03 -05:00
David Hart
b62bb90a0d
git_push: Escape single quote in branch names ( #760 )
...
Parameterize test output fixture.
Check for 'push' in command.script_parts than anywhere in command.script.
2018-01-04 11:40:01 -05:00
Joseph Frazier
a696461cd3
Add apt_upgrade rule ( #761 )
...
* apt_list_upgradable: Prepend sudo to suggestion if used in command
* Add apt_upgrade rule
This suggests `apt upgrade` after `apt list --upgradable` if there are
packages to upgrade. It pairs well with the `apt_list_upgradable` rule,
which suggests `apt list --upgradable` after `apt update` if there are
packages to upgrade.
* Add apt_upgrade rule to README
2018-01-03 19:01:09 +01:00
David Hart
83e1710712
Fix fish shell aliasing ( #753 )
...
* Handle user defined fish aliases
* Add more aliases to test
* Revert unecessary Popen mock changes
* Add test for fish aliasing
Fixes #727
2018-01-02 23:14:02 -05:00
Pablo Santiago Blum de Aguiar
045c8ae76c
#738 : Assert TF_SHELL is defined in bash and zsh aliases
2018-01-02 17:18:34 -02:00
Pablo Santiago Blum de Aguiar
bcb749722b
#738 : Set SHELL env var for fish and tcsh
2018-01-02 17:18:34 -02:00
David Hart
f700b23f57
Add git merge rule ( #755 )
...
This fixes https://github.com/nvbn/thefuck/issues/629
2018-01-02 11:47:48 -05:00
David Hart
57fb6e079a
git_push: Make option handling more robust ( #751 )
...
See https://github.com/nvbn/thefuck/issues/740#issuecomment-354466567
2018-01-01 19:45:46 -05:00
David Hart
83cf97dc26
Suggest git checkout -b ( #754 )
...
This fixes https://github.com/nvbn/thefuck/issues/632
This uses `script_parts` instead of `script.startswith`
to let it work even if there's extra spaces in the command, e.g.
git checkout unknown
2018-01-01 18:30:33 -05:00
Joseph Frazier
4ea02a3153
git_push: Don't add duplicate remote/branch name ( #745 )
...
This fixes https://github.com/nvbn/thefuck/issues/740
2017-12-27 07:54:52 -05:00
Joseph Frazier
d582159670
Add apt_list_upgradable rule ( #732 )
...
This helps you run `apt list --upgradable` after `apt update`,
as it suggests.
2017-11-16 20:19:44 +01:00
Joseph Frazier
10ac1a3b38
#728 : Add heroku_multiple_apps rule ( #729 )
...
Closes https://github.com/nvbn/thefuck/issues/728
2017-11-09 18:42:23 -05:00
Joseph Frazier
8fb5ddefb6
git_flag_after_filename: Handle new error message
...
See 2a5aa826ee
2017-11-01 09:42:52 -04:00
Pablo Santiago Blum de Aguiar
75d2c43997
#702 : fix minor issues with php_s
rule
...
Unfortunately, I didn't catch these issues while reviewing #702 .
After looking more closely at `php` options, `-S` requires additional
arguments (<address>:<port>) and `-s` may produce output if used that
way. So, matching ` -s ` seems to be better.
Also, `@for_app('php')` already asserts the presence of `php ` in the
command script. Matching `php -s` prevents the rule from fixing commands
like `php -t public -s 0.0.0.0:8080`.
2017-10-15 17:18:21 -02:00
Stef Pletinck
64d6835e15
#652 : Add new git_push_different_branch_names rule
...
Fix #652
* Basic fix for #652
* Finishing work
* Added readme line
* Added test
* My test was stupid...
* Removed redundant lines
* That space...
2017-10-15 13:30:29 -02:00
Vladimir Iakovlev
bab5de236f
#710 : Fix tests
2017-10-15 16:39:40 +02:00
Vladimir Iakovlev
985b2d9ec9
#N/A: Add brew_cask_dependency
rule
2017-10-15 16:11:08 +02:00
Vladimir Iakovlev
a906a751c8
#N/A: Add prove_recursively
rule
2017-10-15 15:51:09 +02:00
Stef Pletinck
e658f35bd9
quick fix for #655 ( #702 )
...
* quick fix for #655
* Enabled by default and fix
* Test
* Added readme line
* This is unnecessary
2017-10-10 19:24:38 +02:00
Vladimir Iakovlev
1f8f3dd967
#707 : Update tests
2017-10-10 08:31:45 +02:00
Vladimir Iakovlev
d9fd5e8a6b
#707 : Reimplement cache
2017-10-10 08:30:26 +02:00
Pablo Santiago Blum de Aguiar
dfd0be2002
#701 : Replace the first single occurrence of delete
2017-10-08 18:55:44 -03:00
Vladimir Iakovlev
3253b0e789
#682 : Fix functional tests for experimental instant mode
2017-10-08 17:16:15 +02:00
Vladimir Iakovlev
6362c37eec
Merge pull request #701 from Epse/#670-git_remote_delete
...
fixed #670
2017-10-08 16:25:59 +02:00
Vladimir Iakovlev
f333dfe657
Merge pull request #698 from Epse/dnf-module
...
Basic DNF support
2017-10-08 16:19:51 +02:00
Vladimir Iakovlev
d2c70bd8b8
#682 : Use our own shell logger, fix experimental instant mode on macos
2017-10-08 16:17:41 +02:00
Stef Pletinck
f372f3d56c
Added test
2017-10-07 13:59:32 +02:00
Stef Pletinck
be48f02784
Tests! Also fixed some bytes-string issues
2017-10-07 12:59:21 +02:00
Vladimir Iakovlev
8fbd7c13e4
Merge branch 'patch-1' of https://github.com/reitermarkus/thefuck into reitermarkus-patch-1
...
# Conflicts:
# tests/rules/test_brew_upgrade.py
2017-09-10 07:56:33 +02:00
Vladimir Iakovlev
4875d75a64
#682 : Ensure that script
exists
2017-09-03 10:10:50 +02:00
Vladimir Iakovlev
f83e41137b
Merge branch 'master' into 682-instant-fuck-mode
2017-09-02 09:31:24 +02:00
Vladimir Iakovlev
f9a4b69362
#N/A: Reorganize entrypoints
2017-09-02 09:30:03 +02:00
Vladimir Iakovlev
2e0b423f2c
#682 : Add functional tests for instant mode
2017-09-01 07:10:16 +02:00
Vladimir Iakovlev
4625d8503d
#682 : Unify work with output in classic and instant mode
2017-08-31 17:58:56 +02:00
Vladimir Iakovlev
503c903822
#N/A: Update react_native_command_unrecognized
rule
2017-08-30 08:09:13 +02:00
Vladimir Iakovlev
7a57355e7e
#682 : Disable instant mode on Python 2
2017-08-26 13:16:10 +02:00
Vladimir Iakovlev
31becc9456
#682 : Fix tests and flake8
2017-08-26 06:16:51 +02:00
Vladimir Iakovlev
6a096155dc
#662 : Autoconfigure when fuck
was called < 60 seconds ago from the same shell
2017-08-08 16:13:37 +02:00
Vladimir Iakovlev
5742d2d910
#N/A: Use real PATH
in tests
2017-08-03 12:30:04 +02:00
Vladimir Iakovlev
754bb3e21f
#N/A: Reset environment variables in tests
2017-08-03 12:18:05 +02:00
KEI
8a83b30e73
Corrected the part for splitting a command
2017-07-19 00:09:21 +09:00
Markus Reiter
a1da33493e
Delete test_brew_upgrade.py
2017-07-06 00:20:46 +02:00
Joseph Frazier
76600cf40a
Update stderr wording of git_not_command
...
This changed in git v2.13.1, see
6c48686263 (diff-081cf476dd9ac3b05c183570de47cb23)
2017-06-05 17:29:42 -04:00
Vladimir Iakovlev
b54cdf7c49
#637 : Suggest yarn add
on yarn require
2017-05-10 15:32:11 +02:00