1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#N/A: Fix bash alias on ci

This commit is contained in:
Vladimir Iakovlev 2017-05-10 16:40:57 +02:00
parent 3a134f250d
commit 06a89427e2

View File

@ -11,12 +11,14 @@ class Bash(Generic):
return '''
function {name} () {{
TF_PREVIOUS=$(fc -ln -1);
TF_PYTHONIOENCODING=$PYTHONIOENCODING;
export TF_ALIAS={name};
export TF_SHELL_ALIASES=$(alias);
export PYTHONIOENCODING=utf-8;
TF_CMD=$(
export TF_ALIAS={name}
export TF_SHELL_ALIASES=$(alias)
export PYTHONIOENCODING=utf-8
thefuck $TF_PREVIOUS {argument_placeholder} $@
) && eval $TF_CMD;
export PYTHONIOENCODING=$TF_PYTHONIOENCODING;
{alter_history}
}}
'''.format(