mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-13 22:28:33 +00:00
#549: Fix aliases with bash
This commit is contained in:
parent
84c42168df
commit
79602383ec
@ -12,9 +12,9 @@ class Bash(Generic):
|
||||
function {name} () {{
|
||||
TF_PREVIOUS=$(fc -ln -1);
|
||||
TF_CMD=$(
|
||||
TF_ALIAS={name}
|
||||
TF_SHELL_ALIASES=$(alias)
|
||||
PYTHONIOENCODING=utf-8
|
||||
export TF_ALIAS={name}
|
||||
export TF_SHELL_ALIASES=$(alias)
|
||||
export PYTHONIOENCODING=utf-8
|
||||
thefuck $TF_PREVIOUS {argument_placeholder} $@
|
||||
) && eval $TF_CMD;
|
||||
{alter_history}
|
||||
|
Loading…
x
Reference in New Issue
Block a user