Vladimir Iakovlev
9ba36c9d2a
#74 : #103 : #221 : Go back in history if alias is misspelled
2017-09-01 10:11:42 +02:00
Vladimir Iakovlev
96843fc6cd
#N/A: Support relative paths in cache decorator
2017-08-30 15:05:44 +02:00
Vladimir Iakovlev
9cb04ac631
#682 : Make warnings more visible
2017-08-26 14:30:19 +02:00
Vladimir Iakovlev
b72ad2907f
#682 : Allow THEFUCK_INSTANT_MODE=False
2017-08-26 13:21:24 +02:00
Vladimir Iakovlev
cd3a3cd823
#682 : Implement instant mode aliases for bash and zsh
2017-08-26 05:46:07 +02:00
KEI
8a83b30e73
Corrected the part for splitting a command
2017-07-19 00:09:21 +09:00
Vladimir Iakovlev
06a89427e2
#N/A: Fix bash alias on ci
2017-05-10 16:40:57 +02:00
Vladimir Iakovlev
79602383ec
#549 : Fix aliases with bash
2017-05-10 15:14:01 +02:00
Vladimir Iakovlev
cfa831c88d
#614 : Add --repeat option
2017-03-28 18:09:38 +02:00
Vladimir Iakovlev
beda1854cf
#620 : Add bash support
2017-03-28 12:01:09 +02:00
Vladimir Iakovlev
7532c65c62
#620 : Fix aliases with zsh
2017-03-28 11:38:28 +02:00
Vladimir Iakovlev
ec37998a10
#620 : Add support of arguments to fuck, like fuck -y on zsh
2017-03-28 11:31:06 +02:00
Vladimir Iakovlev
d28567bb31
#585 : Fix suggestion of .bash_profile
2017-03-23 16:55:24 +01:00
Vladimir Iakovlev
408cb5fa09
#611 : Fix python 2 support
2017-03-13 23:26:57 +01:00
Vladimir Iakovlev
14a9cd85aa
#611 : Allow to configure alias automatically by calling fuck twice
2017-03-13 21:50:13 +01:00
Vladimir Iakovlev
350be285b8
#591 : Treat builtin commands as executables
2017-03-13 18:27:01 +01:00
Joseph Frazier
b038ea4541
Merge branch 'master' into flake8
2017-03-08 12:21:54 -05:00
Matt Kotsenas
4669a033ee
Update PowerShell alias to handle no history
...
If history is cleared (or the shell is new and there is no history),
invoking thefuck results in an error because the alias attempts to execute
the usage string.
The fix is to check if Get-History returns anything before invoking
thefuck.
2017-03-01 09:36:30 -08:00
Vladimir Iakovlev
8447b5caa2
#585 : Add note about reloading changes in how to configure message
2017-01-15 14:03:09 +01:00
Vladimir Iakovlev
a778ea6203
#588 : Stop using bashlex
2017-01-11 14:58:50 +01:00
Vladimir Iakovlev
a6f63c0568
#580 : Use bashlex in generic shell
2017-01-09 17:50:23 +01:00
Vladimir Iakovlev
6baa7f650e
Merge pull request #580 from josephfrazier/bash-command-substitution
...
bash: fix parsing of command substitution
2016-11-30 15:49:47 +01:00
Joseph Frazier
4ae32cf4ee
bash: use generic shell's UTF-8 methods
2016-11-23 22:42:16 -05:00
Joseph Frazier
385746850e
generic shell: extract UTF-8 encoding/decoding into methods
2016-11-23 07:53:22 -05:00
Joseph Frazier
4f87141f0c
bash: fallback to generic parser if bashlex fails
2016-11-23 07:43:25 -05:00
Joseph Frazier
ca44ee0640
bash: use bashlex for split_command, not shlex
2016-11-18 14:43:07 -05:00
Pablo Santiago Blum de Aguiar
a947259eef
#577 : Use builtin history in Fish function
...
Fix #577
2016-11-17 22:57:11 -02:00
Vladimir Iakovlev
6f0d1e287d
#571 : Don't put empty string in history in zsh
2016-10-31 18:52:48 +01:00
Vladimir Iakovlev
ddd8788353
#571 : always honor alter_history setting in zsh
2016-10-31 12:57:31 +01:00
Joseph Frazier
b519d317f7
bash: always honor alter_history setting
...
This ensures that even if the command suggested and run by `thefuck`
fails, it will still be added to the history, allowing the user to tweak
it further (or run `fuck` again) if desired.
Note that the fish shell appears to already behave this way.
2016-10-30 23:17:52 -04:00
Joseph Frazier
e0cab4fa1b
Fix flake8 errors: E126 continuation line over-indented for hanging indent
2016-10-07 22:27:07 -04:00
BlahGeek
cfa51506fb
prevent infinity loop while detecting shell
...
In OS X, Process(pid=0).parent() == Process(pid=0)
2016-08-20 12:00:03 +08:00
Matt Kotsenas
16c110823d
Add semi-colons in powershell alias
...
Add semi-colons in powershell alias so that if line breaks get lost the
function can still be invoked directly. This makes it possible to add
thefuck to the current session by running
iex "$(thefuck --alias)"
which mirrors the eval syntax in bash
2016-06-27 13:29:24 -04:00
Pablo Santiago Blum de Aguiar
e2883430bc
#N/A: Cleanup shells/fish.py a bit
2016-06-04 23:18:30 -03:00
Pablo Santiago Blum de Aguiar
96f7e53aa2
#495 : Alter history only when configured to do so
2016-04-30 18:39:08 -03:00
Pablo Santiago Blum de Aguiar
d1f55603fe
#495 : Merge history only when alter_history is set
2016-04-29 23:21:28 -03:00
nvbn
51839e65cd
#495 : Add comment in put_to_history
2016-04-22 03:16:16 +03:00
nvbn
d5ae3a6b41
Merge branch 'fish-put-to-history' of https://github.com/scorphus/thefuck into scorphus-fish-put-to-history
...
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-04-22 03:14:31 +03:00
nvbn
5ec4909d2f
#N/A: Minor style changes
2016-04-12 00:37:18 +03:00
Pablo Santiago Blum de Aguiar
cdccf1881e
#253 : Use a better name for that env var
2016-04-06 23:11:19 -03:00
Pablo Santiago Blum de Aguiar
db6053b301
#253 : Update default overridden aliases with user's
2016-04-06 22:58:08 -03:00
Matt Kotsenas
6daf687237
Add Powershell as a supported shell
...
- There may be additional functionality to implement, but I've been
running this way for a month with no known issues
2016-03-16 16:06:09 -07:00
Matt Kotsenas
2207dd2668
Update _get_shell to work with Windows
...
- _get_shell assumed the parent process would always be the shell process, in Powershell the
parent process is Python, with the grandparent being the shell
- Switched to walking the process tree so the same code path can be used in both places
2016-03-15 14:10:04 -07:00
Pablo Santiago Blum de Aguiar
bb5f6bb705
#301 : Set variables within the alias
...
Fix #301
2016-03-09 21:58:18 -03:00
nvbn
7ce4307c87
#402 : Don't invoke bash for getting aliases
2016-03-01 01:28:21 +03:00
nvbn
f7f0660114
#402 : Don't invoke zsh for getting aliases
2016-03-01 01:21:51 +03:00
nvbn
9b260eb239
⚠️ #442 : Change history only on shell side
2016-02-22 18:31:28 +03:00
mcarton
4af7dc2748
Let bash handle bash’s history
2016-02-22 14:53:53 +01:00
Pablo Santiago Blum de Aguiar
d71b9c2e62
#N/A Remove fucked up cmd from history regardless of status
...
Most fucked up commands are erroneous, but that's not always the case.
2016-02-18 15:17:46 -02:00
nvbn
fe07fcaa62
#441 : Remove shells methods wrappers
2016-01-29 13:09:40 +03:00