mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
#N/A: Fix bash alias on ci
This commit is contained in:
parent
3a134f250d
commit
06a89427e2
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user