thatneat
3bbd0e9463
Correct "apt uninstall" -> "apt remove" ( #950 )
...
* Correct "apt uninstall" -> "apt remove"
* remove unused import
2019-09-17 20:02:45 +02:00
Shaoyuan CHEN
c53676e42f
change sudo.py pattern to lowercase ( #947 )
2019-09-02 19:17:48 +02:00
ik1ne
84c16fb69a
Change: rules_git_checkout handling branch names with slashes & Remote HEAD. ( #944 )
...
* Add: Test for branch names with slashes & Remote HEAD.
* - Add: Handling for removing remote HEAD.
- Change: Improved handling for branches with slash in their names.
2019-09-02 19:16:40 +02:00
ik1ne
1683f45e94
Update docker commands. ( #940 )
...
* Add: Tests for newer version docker support.
* Add: Support for newer versions of docker (Modified rules.docker_not_command).
* Fix: Updated disabling memoize.
* Change: removed empty list check.
* Fix: _parse_commands now uses line.strip() internally and ends_with arg now doesn't end with newline.
* Change: Replaced disable_memoize in favor of no_memoize fixture.
* Fix: removed unused import.
2019-08-21 20:35:55 +02:00
ik1ne
d88454a638
Add: rules/go_unknown_command for misspelled go commands. ( #933 )
...
* - Add: rules/go_unknown_command for misspelled go commands.
- Add: tests/test_go_unknown_command which tests match and mismatch case of rules/go_unknown_command.
- Change: Added description of go_unknown_command to README.md.
* Add: test_get_new_command for testing rules.go_unknown_command.test_get_new_command method.
* Change: go_unknown_command.match now uses for_app decorator.
* Add: get_golang_commands which dynamically gets golang possible commands.
* Fix: cache proper function instead of its result.
2019-08-21 20:34:34 +02:00
Samuel Marks
8ef9634492
[.editorconfig] Init ( #938 )
2019-08-19 21:47:15 +02:00
ik1ne
335ae40675
Fix: rules.git_checkout not working with git 2.22.0 ( #934 )
...
* Change: remove period from git checkout error output.
* Change: remove period from git checkout get_new_command.
2019-08-19 21:45:55 +02:00
tobixx
3bbe391391
Only consider raw command in output ( #931 )
...
* Only consider raw command in output match
... else it will not work for localized messages.
Example German output:
```
Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
```
* added german output test
* make the linter happy
2019-08-19 21:39:14 +02:00
Connor Martin
01a5ba99d0
Docker remove container before remove image ( #928 )
...
* add docker container removal
* remove container before deleting image
* update readme
* clean up and add assert not test
* test not docker command
* use shell.and_ correctly
2019-07-10 20:34:20 +02:00
Mathieu Cantin
4c3a559124
Added rules to run terraform init before terraform plan or apply ( #924 )
...
* Run terraform init to initialize terraform modules
* Fix indent
* Add unit tests for terraform_init.py
2019-06-26 20:02:01 +02:00
Pablo Aguiar
e047c1eb40
#921 : Try printing alias before trying to fix a command ( #923 )
...
Fixes #921
2019-06-26 20:01:38 +02:00
Tycho Grouwstra
48e1e4217f
support nixos command-not-found, closes #912 ( #922 )
2019-06-26 20:01:02 +02:00
Vladimir Iakovlev
59dc6cbf90
#N/A: Fix the release script
2019-05-27 18:32:48 +02:00
Vladimir Iakovlev
59e1f7b122
Bump to 3.29
3.29
2019-05-27 18:29:04 +02:00
Pablo Aguiar
ff2944086d
#N/A: Improve how version is fetched for all shells ( #920 )
2019-05-27 18:24:55 +02:00
Pablo Aguiar
ba949f7fd9
#N/A: Add pyenv_no_such_command
rule ( #919 )
2019-05-27 18:23:45 +02:00
Pablo Aguiar
5efcf1019f
#N/A: Improve support to Windows in no_command
rule ( #918 )
...
Windows “not found” message is quite different from POSIX systems.
2019-05-27 18:23:06 +02:00
Ryan Delaney
70a13406f0
Fix a couple small shellcheck errors ( #915 )
...
* Fix shellcheck SC2046
Further reading: https://github.com/koalaman/shellcheck/wiki/Sc2046
* Fix shellcheck 2068
Further reading: https://github.com/koalaman/shellcheck/wiki/Sc2068
* Fix syntax error from bad quoting
I also used a docstring here because the escaping makes it harder for
humans to parse
2019-05-22 20:22:09 +02:00
Jesus Cuesta
201c01fc74
Adding yay AUR manager to Arch Linux's commands since yaourt is unmaintained and has some security issues. ( #907 )
2019-05-21 20:49:04 +02:00
Pablo Aguiar
78ef9eec88
#902 : Use os.pathsep
to split PATH env var ( #917 )
...
Fix #902
2019-05-21 20:47:47 +02:00
Pablo Aguiar
40ab4eb62d
#899 : Support -y/--yeah
command line args in Fish Shell ( #900 )
2019-04-24 18:17:52 +02:00
Nick "darkfiberiru" Wolff
55cb3546df
Pkg should be recommend on freebsd to install ( #905 )
2019-04-24 18:17:01 +02:00
Inga Feick
82902fb50d
Add rule for pip_install permission fix ( #895 )
...
* Add rule for pip_install permission fix
* Fix whitespace
* Switch quotation to single
* remove 2nd else
* E261 indent comment
2019-04-24 18:15:38 +02:00
Inga Feick
828ae537da
Docker login ( #894 )
...
* Add docker_login rule
* Add docker_login rule
* Whitespace fix
* Fix typo in test case
* Fix typo in test case
* Add test cases
2019-04-04 00:01:14 +02:00
Aiden Song
1208faaabb
#N/A: Add rule for git commit
that reverts previous commit ( #886 )
2019-02-25 23:24:16 +01:00
Pablo Santiago Blum de Aguiar
2d81166213
#N/A: Return an ordered list from set of overridden aliases
...
This way it's ensured that whatever is used as cache key is always
ordered. Sets are unordered collections.
2019-01-17 00:29:22 +01:00
Vladimir Iakovlev
8093f7cab8
Squashed commit of the following:
...
commit b853385ea9b9409a29a30c7af4d47c9a500cd287
Author: Vladimir Iakovlev <nvbn.rm@gmail.com>
Date: Tue Jan 15 00:54:01 2019 +0100
#864 : Make the solution for Greek a bit more extensible
commit 073ebceb594ad24972f7765b1f608de44c1cebf2
Merge: b946b7d 141462a
Author: Vladimir Iakovlev <nvbn.rm@gmail.com>
Date: Tue Jan 15 00:46:09 2019 +0100
Merge branch 'master' of git://github.com/RealOgre/thefuck into RealOgre-master
commit 141462a6fbe51832276b97d2143b2e26c138addc
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 16:47:43 2018 +0200
Update switch_lang.py
commit 1f792853f25999448da656fb8724df6aba4ba03d
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 16:39:04 2018 +0200
Update switch_lang.py
commit e7dede53a19db78b486463c32077557ff6ebf342
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 15:24:10 2018 +0200
Update switch_lang.py
commit 4a0a973e62b497225534e26b05c7909e48ed1b52
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 15:04:44 2018 +0200
Update switch_lang.py
commit 80d6b8da4c77452f8f13988b79b6b7e2a9d63c9e
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 14:25:15 2018 +0200
Update switch_lang.py
commit 66b13c53b367e7c47df9da14da67d35dfc651152
Author: RealOrge <45096491+RealOrge@users.noreply.github.com>
Date: Thu Dec 13 11:44:48 2018 +0200
Update switch_lang.py
2019-01-15 00:54:48 +01:00
yangkyeongmo
b946b7d319
Comment correction on ui.py ( #874 )
2019-01-15 00:36:05 +01:00
Vladimir Iakovlev
9354a977dd
#N/A: Fix tests with pytest 4
2019-01-15 00:35:28 +01:00
Mickaël Schoentgen
1eb4ccbcc9
Fix 2 DeprecationWarning: invlid escape sequence ( #872 )
...
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-06 15:44:09 +01:00
Pablo Santiago Blum de Aguiar
ce5feaebf7
#869 : Use fish --version
instead of an interactive shell for info()
...
This prevents initialisation and consequentially a recursive loop.
Fix #869
Ref oh-my-fish/plugin-thefuck#11
2019-01-04 20:54:03 +01:00
Fábio Santos
ac343fb1bd
#868 : Point out you can use linuxbrew in README
...
* Point out you can use linuxbrew
* Change text and add link to linuxbrew
* Change brew related URLs to HTTPS
2019-01-04 20:35:27 +01:00
Chris De Pasquale
7bc619385b
Fixed incorrect ordering of for_app and sudo_support causing apt_invalid_operation and dnf_no_such_command rules to fail ( #861 )
2018-12-11 01:01:17 +01:00
Vladimir Iakovlev
d86dd5f179
#N/A: Clear dist/
before uploading releases
2018-11-29 23:57:07 +01:00
Vladimir Iakovlev
8c1591fbe3
Bump to 3.28
3.28
2018-11-29 23:43:39 +01:00
kozar
dfd31872a9
#855 - Support Ukrainian layout; Fix matching of similar layouts ( #856 )
...
* #855 - Support Ukrainian layout; Fix matching of similar layouts
* Fix splitting of command line
2018-11-21 19:56:49 +01:00
Vladimir Iakovlev
1eaead4f70
#N/A: Remove performance tests as they are meaningless with the current implementation
2018-11-21 19:44:07 +01:00
Vladimir Iakovlev
5b3350b2dd
#N/A: Fix tests with py.test 4
2018-11-21 19:43:01 +01:00
Vladimir Iakovlev
81b05b9f88
#N/A: Fix osx travis-ci build
2018-11-21 19:31:59 +01:00
Simon Eisenmann
b5436a2c47
Remove zsh instant mode log with -f ( #854 )
...
In some setups, rm might default to interactive promt. This change adds
the -f parameter to force remove the instant mode log on exit to avoid
an interactive prompt.
```
~
rm: remove regular file
'/tmp/user/1000/thefuck-script-log-bbb81260140c4b3fa18bf2097f15bd77'?
```
2018-11-02 20:00:56 +01:00
Přemek Vyhnal
b08aec02f5
update install guide for Linux Mint ( #852 )
...
on Mint I had to install python3-setuptools package too
2018-10-30 21:49:42 +01:00
Pablo Aguiar
e6be00a63b
Comply to new flake8 3.6 ( #853 )
...
* #N/A: Ignore W504 line break after binary operator
W504 is now part of flake8 current version 3.6
* #N/A: Fix invalid escape sequences
* #N/A: Remove conflicting path before installing gcc with brew
2018-10-30 20:56:55 +01:00
Vladimir Iakovlev
d226b8f258
#835 : Make cache failure non-fatal
2018-10-18 00:35:18 +02:00
Vladimir Iakovlev
f06ebbf2ae
#N/A: Use twine for uploading new releases
2018-10-16 21:08:08 +02:00
Nallagatla Manikanta
3e522ba787
Add the pwsh support for thefuck ( #844 )
2018-10-09 23:20:48 +02:00
Pablo Aguiar
25142f81f8
Some improvements ( #846 )
...
* #833 : do not require sudo on TravisCI
* #N/A: Add Python dev releases to TravisCI pipeline
Inspired by Brett Cannon's advise [1].
1: https://snarky.ca/how-to-use-your-project-travis-to-help-test-python-itself/
* #837 : try and kill proc and its children
* #N/A: show shell information on `thefuck --version`
* #N/A: omit default arguments to get_close_matches
* #842 : add settings var to control number of close matches
* #N/A: remove `n` from the list of `get_closest`'s args
2018-10-08 22:32:30 +02:00
Rafał Zawadzki
5fd4f74701
Added back-ticks for the consistency ( #845 )
2018-10-08 22:20:17 +02:00
Waldir Pimenta
a0286b402a
ISSUE_TEMPLATE.md: sync format of fill-in fields ( #841 )
...
Some of the "FILL THIS IN" were wrapped with html comment markup, but most of them weren't. This change makes them all use the same format.
2018-10-02 20:46:58 +02:00
Mateusz Mikuła
bb41f5c4e5
Add snapcraft.yaml ( #836 )
2018-10-02 20:46:13 +02:00
James Turnbull
926e9ef963
Added a rule to match az binary sub-command misses ( #834 )
2018-08-16 00:22:24 +02:00