Merge branch 'main' of 192.168.1.159:tour/finish
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""
|
"""
|
||||||
finish.py – AI shell completions that never leave your machine.
|
finish.py - AI shell completions that never leave your machine.
|
||||||
"""
|
"""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
import hashlib
|
import hashlib
|
||||||
@@ -376,7 +376,7 @@ bind -x '"\\e\\\\": _finish_complete'
|
|||||||
if marker in text:
|
if marker in text:
|
||||||
return
|
return
|
||||||
rc.write_text(text + "\n" + snippet)
|
rc.write_text(text + "\n" + snippet)
|
||||||
console.print("[green]Key-binding installed (Alt+\\)[/] – restart your shell.")
|
console.print("[green]Key-binding installed (Alt+\\)[/] - restart your shell.")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Handle readline-complete flag before argparse (for bash bind -x)
|
# Handle readline-complete flag before argparse (for bash bind -x)
|
||||||
|
|||||||
Reference in New Issue
Block a user