From b0adc7f2ca99379be5df39eccec11b0f99c97b5d Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Mon, 23 Nov 2015 12:44:50 -0200 Subject: [PATCH] #N/A Indent Fish alias with two spaces (default) --- thefuck/shells.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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