From 7489040f8fc1332e5609b48a2707a212f9532b0e Mon Sep 17 00:00:00 2001 From: SanketDG Date: Tue, 12 May 2015 14:29:00 +0530 Subject: [PATCH 1/2] fix thefuck-alias --- thefuck/shells.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 2ed5c48..90b560e 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -32,7 +32,7 @@ class Generic(object): return command_script def app_alias(self): - return "\nalias fuck='eval $(thefuck $(fc -ln -1))'\n" + print "\nalias fuck='eval $(thefuck $(fc -ln -1))'\n" def _get_history_file_name(self): return '' From e8de4ee7e88173954e2e397e253ac484b8751397 Mon Sep 17 00:00:00 2001 From: nvbn Date: Tue, 12 May 2015 14:22:20 +0200 Subject: [PATCH 2/2] #185 Fix python 3 --- thefuck/shells.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/shells.py b/thefuck/shells.py index 90b560e..7b3aafd 100644 --- a/thefuck/shells.py +++ b/thefuck/shells.py @@ -32,7 +32,7 @@ class Generic(object): return command_script def app_alias(self): - print "\nalias fuck='eval $(thefuck $(fc -ln -1))'\n" + return "\nalias fuck='eval $(thefuck $(fc -ln -1))'\n" def _get_history_file_name(self): return '' @@ -114,7 +114,7 @@ def to_shell(command): def app_alias(): - return _get_shell().app_alias() + print(_get_shell().app_alias()) def put_to_history(command):