mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
#398: Add PYTHONIOENCODING=utf-8
to Fish Shell alias
This commit is contained in:
parent
959680d24d
commit
6c3d67763a
@ -153,7 +153,7 @@ class Fish(Generic):
|
|||||||
return ('function {0} -d "Correct your previous console command"\n'
|
return ('function {0} -d "Correct your previous console command"\n'
|
||||||
' set -l exit_code $status\n'
|
' set -l exit_code $status\n'
|
||||||
' set -l fucked_up_command $history[1]\n'
|
' set -l fucked_up_command $history[1]\n'
|
||||||
' env TF_ALIAS={0}'
|
' env TF_ALIAS={0} PYTHONIOENCODING=utf-8'
|
||||||
' thefuck $fucked_up_command | read -l unfucked_command\n'
|
' thefuck $fucked_up_command | read -l unfucked_command\n'
|
||||||
' if [ "$unfucked_command" != "" ]\n'
|
' if [ "$unfucked_command" != "" ]\n'
|
||||||
' eval $unfucked_command\n'
|
' eval $unfucked_command\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user