1
0
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:
Vladimir Iakovlev 2017-05-10 15:14:01 +02:00
parent 84c42168df
commit 79602383ec

View File

@ -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}