mirror of
https://github.com/nvbn/thefuck.git
synced 2025-10-30 14:44:05 +00:00
add alias function
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user