Skip to content

Commit

Permalink
Fixed ctrl C
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Nov 14, 2024
1 parent c0bc124 commit 8514f0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions interpreter_1/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ def chat(self):
"> ",
placeholder=placeholder,
).strip()
except KeyboardInterrupt:
raise
except:
user_input = input("> ").strip()
print()
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ else
fi

# Offer shell integration
info "Would you like to install shell integration? This allows you to use Open Interpreter directly from your shell - if you type an unrecognized command, it will be passed to Open Interpreter with context about your recent shell history. [y/N] "
info "Would you like to install our experimental shell integration? This allows you to use your shell as a chatbox, with your shell history as context. [y/N] "
read -r install_shell_integration
if [[ "$install_shell_integration" =~ ^[Yy]$ ]]; then
if command_exists interpreter-shell; then
interpreter-shell
info "Shell integration installed successfully! Restart your shell to activate it."
info "Shell integration installed successfully! Restart your shell to activate it. Run interpreter-uninstall-shell to remove it."
else
error "Could not find interpreter-shell command. Please ensure Open Interpreter was installed correctly."
fi
Expand Down

0 comments on commit 8514f0d

Please sign in to comment.