From 4276e1b991ea923a2a3bdd227bb3d98ced1fd4e2 Mon Sep 17 00:00:00 2001 From: SanketDG Date: Fri, 1 May 2015 00:12:30 +0530 Subject: [PATCH] add alias function --- thefuck/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thefuck/main.py b/thefuck/main.py index 2ce1dd3..524fe0d 100644 --- a/thefuck/main.py +++ b/thefuck/main.py @@ -112,6 +112,10 @@ def is_second_run(command): return command.script.startswith('fuck') +def alias(): + print("\nalias fuck='eval $(thefuck $(fc -ln -1))'\n") + + def main(): colorama.init() user_dir = setup_user_dir()