nvbn
81f6a25abc
#398 : Fix UnicodeDecodeError in logs
2015-11-01 14:42:48 +08:00
nvbn
cc9af78787
Merge branch 'master' of github.com:nvbn/thefuck
2015-11-01 13:17:15 +08:00
nvbn
1fc3f1b5bf
#398 : Fix UnicodeDecodeError in logs
2015-11-01 13:16:58 +08:00
Jan Warchoł
dc23d67a42
Use --force-with-lease instead of --force for git push
...
--force flag can be very dangerous, because it unconditionally
overwrites remote branch - if someone pushed new commits to the remote
repo after you last fetched/pulled, and you do push --force, you will
overwrite his commits without even knowing that you did that. Using
--force-with-lease is much safer because it only overwrites remote
branch when it points to the same commit that you think it points to.
Read more:
https://developer.atlassian.com/blog/2015/04/force-with-lease/
2015-10-30 16:17:56 +01:00
nvbn
959b96cf6e
#392 : Show only debug message if script isn't splitable
2015-10-29 01:03:27 +08:00
nvbn
f20311fa89
#392 : Little refactoring
2015-10-29 00:13:59 +08:00
mcarton
e71a3e0cdb
Replace (almost) all instance of script.split
2015-10-28 16:43:24 +01:00
mcarton
2d995d464f
Fix the cpp11 rule
2015-10-28 15:27:10 +01:00
mcarton
280751b36e
Fix the unzip rules and filenames with spaces
2015-10-28 15:13:33 +01:00
mcarton
0a6a3db65d
Fix the untar rules and filenames with spaces
2015-10-28 15:12:59 +01:00
mcarton
ecfc180280
Add shells.quote
2015-10-28 14:16:01 +01:00
mcarton
dae58211ba
Parse command line with shlex
...
I put that in shells so that weird shells might try to parse it
differently.
2015-10-28 14:01:14 +01:00
nvbn
346cb99217
#385 Little refactoring
2015-10-21 18:13:22 +08:00
nvbn
bbfedb861f
Merge branch 'xdg' of https://github.com/mcarton/thefuck into mcarton-xdg
2015-10-21 18:03:39 +08:00
Pablo Santiago Blum de Aguiar
590fdba2aa
Fix rules.touch
tests
...
Move them to `rules` sub-directory and import `shells` instead of `and_`
which in turn triggers the `generic_shell` fixture fixing the tests on
Fish Shell.
2015-10-18 19:49:46 -02:00
Vladimir Iakovlev
f374142bf8
Merge pull request #384 from scorphus/fish-func
...
Improve the Fish Shell function making it faster
2015-10-19 01:50:53 +08:00
Pablo Santiago Blum de Aguiar
5389d0c106
Add git_two_dashes
rule
2015-10-17 18:40:53 -03:00
mcarton
8f25c95f06
Use XDG_CACHE_HOME for cache
2015-10-16 17:33:52 +02:00
mcarton
4a48108c69
Follow the XDG Base Directory Specification
2015-10-16 16:52:03 +02:00
Pablo Santiago Blum de Aguiar
f5e8fe954e
Improve the Fish Shell function making it faster
...
It works now with no temp file involved, which makes it a lot faster.
Also, `history --merge`, although only supported on Fish Shell 2.2+,
merges the corrected entry back into history. Neat!
Ref #89
2015-10-16 00:42:34 -03:00
jab
09d9f63c98
use /bin/rm rather than rm -f
2015-10-02 10:12:50 -04:00
jab
e8883429c6
rm -f $eval_script
...
Without this change, users who have "rm" aliased to "rm -i"
have to confirm removal of the file after running fuck. This
change allows such users to run fuck without having to do
the superfluous rm confirmation.
2015-10-02 10:09:19 -04:00
nvbn
c1b67f2514
Show python version in --version
2015-09-28 16:47:54 +08:00
grammaright
5021d16cea
Add j, k key for arrow action at read_actions
2015-09-13 01:27:21 +09:00
nvbn
213791d3c2
#369 Fix git_fix_stash
fails when script is just git
2015-09-10 14:28:22 +03:00
nvbn
3e8db28a73
#355 Add touch
rule
2015-09-09 10:53:56 +03:00
nvbn
dfa22bc92b
#366 Add type annotations in core components
2015-09-08 15:54:07 +03:00
nvbn
eb17e696c3
#366 Fix python 2 support
2015-09-08 15:32:19 +03:00
nvbn
b8ce95ad68
Minor refactoring
2015-09-08 15:24:49 +03:00
nvbn
1173f9f59c
Organize settings initialization logic in Settings
2015-09-08 15:15:53 +03:00
nvbn
a8dbc48fd4
Move commands-related logic to Command
and CorrectedCommand
2015-09-08 15:00:57 +03:00
nvbn
4a27595e97
Move rule-related code to Rule
2015-09-08 14:18:11 +03:00
nvbn
bf80d97062
Remove obscure SortedCorrectedCommandsSequence
2015-09-08 12:52:10 +03:00
nvbn
1fb6dd925b
Remove on_change
from CommandSelector
2015-09-08 12:27:17 +03:00
nvbn
b2be0b3cad
Remove obscure RulesNamesList
and DefaultRulesNames
2015-09-08 12:14:39 +03:00
mcarton
488c1dad79
Merge branch 'master' of github.com:nvbn/thefuck into fix-unzip
2015-09-07 21:12:14 +02:00
mcarton
c3fe7e5e68
Fix #363
2015-09-07 20:48:10 +02:00
nvbn
7339a97b90
#364 Make aliases cache persistent
2015-09-07 19:05:38 +03:00
nvbn
f3525e9fe0
#364 Attach user_dir
to settings
2015-09-07 18:59:10 +03:00
nvbn
df4d2cc88d
⚠️ Remove settings
param from rules match
, get_new_command
and side_effect
2015-09-07 13:00:29 +03:00
nvbn
382eb8b86c
Fix tests
2015-09-07 12:12:16 +03:00
nvbn
105d3d8137
Make settings a global singleton
2015-09-06 21:47:12 +03:00
nvbn
dd0667ea8f
#356 Ignore thefuck
entry points
2015-09-06 13:37:48 +03:00
nvbn
4392872568
#356 Print useful information when fuck
called and alias isn't configured
2015-09-06 13:29:42 +03:00
nvbn
2f9db24ed1
#357 Add exclude_rules
settings option
2015-09-06 12:55:59 +03:00
nvbn
8cc19daaaa
Use pytest-docker-pexpect
for func tests
2015-09-06 00:56:18 +03:00
nvbn
e2e8b6fc86
Fix without result
2015-09-05 11:45:39 +03:00
nvbn
9a02e821cd
Fix python 2 support
2015-09-02 11:54:58 +03:00
nvbn
4129ff2717
#353 Cache aliases in a temporary file
2015-09-02 11:10:03 +03:00
nvbn
b0195a8748
Reorganize imports
2015-09-02 09:43:40 +03:00