mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
add alias function
This commit is contained in:
parent
6372674351
commit
4276e1b991
@ -112,6 +112,10 @@ def is_second_run(command):
|
|||||||
return command.script.startswith('fuck')
|
return command.script.startswith('fuck')
|
||||||
|
|
||||||
|
|
||||||
|
def alias():
|
||||||
|
print("\nalias fuck='eval $(thefuck $(fc -ln -1))'\n")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
colorama.init()
|
colorama.init()
|
||||||
user_dir = setup_user_dir()
|
user_dir = setup_user_dir()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user