diff --git a/thefuck/shells.py b/thefuck/shells.py index 10f56a8..973641d 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -151,18 +151,18 @@ class Fish(Generic): def app_alias(self, fuck): return ('function {0} -d "Correct your previous console command"\n' - ' set -l exit_code $status\n' - ' set -x TF_ALIAS {0}\n' - ' set -l fucked_up_command $history[1]\n' - ' thefuck $fucked_up_command | read -l unfucked_command\n' - ' if [ "$unfucked_command" != "" ]\n' - ' eval $unfucked_command\n' - ' if test $exit_code -ne 0\n' - ' history --delete $fucked_up_command\n' - ' history --merge ^ /dev/null\n' - ' return 0\n' - ' end\n' + ' set -l exit_code $status\n' + ' set -x TF_ALIAS {0}\n' + ' set -l fucked_up_command $history[1]\n' + ' thefuck $fucked_up_command | read -l unfucked_command\n' + ' if [ "$unfucked_command" != "" ]\n' + ' eval $unfucked_command\n' + ' if test $exit_code -ne 0\n' + ' history --delete $fucked_up_command\n' + ' history --merge ^ /dev/null\n' + ' return 0\n' ' end\n' + ' end\n' 'end').format(fuck) @memoize