You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey. I play with repl's a bunch; but sometimes want to jump into previous one after some digging. As such, I created a few helper functions I've found useful. Functionally, every time I start a repl; i gives a unique name to it; incrementing from the previous. I also added a 'last' flag; to automatically attach to the last repl. I also blumbed arbitrary session naming if I want to be explict. I have usage examples below; is this something others would find useful? Currently it's just bash wrappers, but helpers for session management like this could easily be integrated directly into shell_gpt itself.
➜ gr # start a new repl
gpt: 1
Entering REPL mode, press Ctrl+C to exit.
>>> First Convo
Hello! How can I assist you with Linux/Ubuntu today?
>>> Aborted.
➜ gr
gpt: 2gr
Entering REPL mode, press Ctrl+C to exit.
>>> Second Convo
Sure, what do you need help with in this second conversation?
>>> Aborted.
➜ gr 1
─────────────────────────────────────────────────
Chat History
──────────────────────────────────────────────────
system: You are ShellGPT
You are programming and system administration assistant.
You are managing Linux/Ubuntu 22.04.4 LTS operating system with bash shell.
Provide short responses in about 100 words, unless you are specifically asked for more details.
If you need to store any data, assume it will be stored in the conversation.
APPLY MARKDOWN formatting when possible.
user: First Convo
assistant: Hello! How can I assist you with Linux/Ubuntu today?
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Entering REPL mode, press Ctrl+C to exit.
>>> Aborted.
➜ gr last
─────────────────────────────────────────────────
Chat History
──────────────────────────────────────────────────
system: You are ShellGPT
You are programming and system administration assistant.
You are managing Linux/Ubuntu 22.04.4 LTS operating system with bash shell.
Provide short responses in about 100 words, unless you are specifically asked for more details.
If you need to store any data, assume it will be stored in the conversation.
APPLY MARKDOWN formatting when possible.
user: Second Convo
assistant: Sure, what do you need help with in this second conversation?
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Entering REPL mode, press Ctrl+C to exit.
>>> Aborted.
➜ gr pyGui
Entering REPL mode, press Ctrl+C to exit.
>>> pyGui workshopping
To work with GUI programming in Python, you can use libraries like Tkinter, PyQt, or Kivy. Tkinter is the
...
➜ du /tmp/chat_cache/*
4 /tmp/chat_cache/1
4 /tmp/chat_cache/2
4 /tmp/chat_cache/pyGui
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey. I play with repl's a bunch; but sometimes want to jump into previous one after some digging. As such, I created a few helper functions I've found useful. Functionally, every time I start a repl; i gives a unique name to it; incrementing from the previous. I also added a 'last' flag; to automatically attach to the last repl. I also blumbed arbitrary session naming if I want to be explict. I have usage examples below; is this something others would find useful? Currently it's just bash wrappers, but helpers for session management like this could easily be integrated directly into shell_gpt itself.
Beta Was this translation helpful? Give feedback.
All reactions