Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to persist conversation history #11

Open
ekkinox opened this issue Apr 16, 2023 · 6 comments
Open

Possibility to persist conversation history #11

ekkinox opened this issue Apr 16, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@ekkinox
Copy link
Owner

ekkinox commented Apr 16, 2023

An interresting feature could be to have the possibility to persist a conversation in REPL mode, to be able to continue from where you left.

This could be done via a -r (record) flag or maybe there is better user ideas.

@ekkinox ekkinox added the enhancement New feature or request label Apr 16, 2023
@ekkinox ekkinox self-assigned this Apr 16, 2023
@mateothegreat
Copy link

I just found ya and thought the same exact thing!

But rather than a REPL history you could cache all of the openai responses to prevent having to make the round-trip again in the future.

Need help? :)

@ekkinox
Copy link
Owner Author

ekkinox commented Apr 18, 2023

indeed, the idea would be to let user choose if and where to record the REPL questions and answers (can be a flag, or via settings), and imo ideally in the json format matching OpenAI inputs (would ease marshalling in the go openai lib structs I use under the hood)

then, when coming back, the very next question would send the previous history + new question, but we have a issue here: the amount of openai api tokens this would consume (may quickly be huge)

and yes, any help is welcomed, always !

@XxnittanixX
Copy link

okay then make it use the processing method
and cut out the lines it doesnt need
Read the first line of your text
Read the third line of text
If you don’t understand the third line
Go back to the second line
Repeat this cycle for the paragraph

After first paragraph
Read third paragraph.
If you don’t understand the third paragraph
go back to the second paragraph and repeat cycle.
Do until completion

by doing this we can save our tokens and, improve the speed at which chat gpt responds. also i want to add another rule.
yai must not abbreviate variables and must always use the full words and if the user asks for yai commenting the shit out.

@XxnittanixX
Copy link

i rest my case can anyone take it further from here?

` #!/bin/bash

# Specify the output file names                                             
session_file="session-$(date +"%Y%m%d-%H%M%S").log"                         
output_file="program-output.txt"                                            
                                                                            
# Start recording the session                                               
script -f "$session_file"                                                   
                                                                            
# Run your program and redirect output to a file                            
your-program > "$output_file"                                               
                                                                            
# Exit the script after the session is finished                             
exit                               

`

@XxnittanixX
Copy link

heres the output
`Script started on 2023-07-03 00:49:45-04:00 [TERM="xterm-256color" TTY="/dev/pts/1" COLUMNS="82" LINES="25"]
/home/nittani/.zsh-config/_init.sh:source:31: no such file or directory: /home/nittani/.zplugin/bin/zplugin.zsh
/home/nittani/.zsh-config/zplugin-init.zsh:7: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:8: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:10: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:11: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:14: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:15: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:17: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:18: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:22: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:24: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:25: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:27: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:28: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:32: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:32: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:34: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:35: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:38: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:39: command not found: zplugin
�[1m�[7m%�[27m�[1m�[0m

�]0;nittani@nittani-inspiron73062n1:
�[0m�[27m�[24m�[J
�[1m�[33m(4)�[39m�[0m �[1m�[36m
�[39m�[0m
�[1m�[32m%�[39m�[0m �[K�[?1h�=�[?2004hbash record.sh�[14D�[32mb�[32ma�[32ms�[32mh�[39m �[4mr�[4me�[4mc�[4mo�[4mr�[4md�[4m.�[4ms�[4mh�[24m��[4mh�[4m �[24m���[4mh�[24m�[24m y��[4my�[24m��[4my�[4ma�[24m���[24my�[24mai�[?1l�>�[?2004l

Script started, output log file is 'session-20230703-005004.log'.
/home/nittani/.zsh-config/_init.sh:source:31: no such file or directory: /home/nittani/.zplugin/bin/zplugin.zsh
/home/nittani/.zsh-config/zplugin-init.zsh:7: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:8: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:10: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:11: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:14: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:15: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:17: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:18: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:22: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:24: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:25: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:27: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:28: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:32: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:32: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:34: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:35: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:38: command not found: zplugin
/home/nittani/.zsh-config/zplugin-init.zsh:39: command not found: zplugin
�[1m�[7m%�[27m�[1m�[0m

�]0;nittani@nittani-inspiron73062n1:
�[0m�[27m�[24m�[J
�[1m�[33m(6)�[39m�[0m �[1m�[36m
�[39m�[0m
�[1m�[32m%�[39m�[0m �[K�[?1h�=�[?2004hy��[1m�[31my�[0m�[39m��[1m�[31my�[0m�[39m�[90mai�[39m����[1m�[31my�[1m�[31ma�[0m�[39m���[1m�[31my�[1m�[31ma�[1m�[31mi�[0m�[39m����[0m�[32my�[0m�[32ma�[0m�[32mi�[39m�[?1l�>�[?2004l

�]11;?�\�[6n�]10;?�\�[6n�]11;?�\�[6n�[?25l�[2J�[1;1H�[1;1H

�[38;5;252;1m�[0m�[38;5;252;1m�[0m �[38;5;252;1mHelp�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236m↑�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m/�[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236m↓�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m : navigate in�[0m�[38;5;252m history�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mtab�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m : switch between �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236m🚀 exec�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m and �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236m💬 chat�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m prompt�[0m�[38;5;252m modes�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mctrl+h�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m: show�[0m�[38;5;252m help�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mctrl+s�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m: edit�[0m�[38;5;252m settings�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mctrl+r�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m: clear terminal and reset discussion�[0m�[38;5;252m history�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mctrl+l�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m: clear terminal but keep discussion�[0m�[38;5;252m history�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252m• �[0m�[38;5;203;48;5;236m �[0m�[38;5;203;48;5;236mctrl+c�[0m�[38;5;203;48;5;236m �[0m�[38;5;252m: exit or interrupt command�[0m�[38;5;252m execution�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m�[0m

�[38;2;255;166;87m🚀 > �[0m�[7mE�[0m�[38;5;240mxecute something...�[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mh�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mhi�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mhi �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mhi �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m�[38;2;255;166;87m🚀 > �[0m�[0m�[38;2;255;166;87mhi �[0m

⠙ calculating...�[82D�[2K�[1A�[82D�[2K

⠹ calculating...�[82D�[2K�[1A�[82D�[2K

⠸ calculating...�[82D�[2K�[1A�[82D�[2K

⠼ calculating...�[82D�[2K�[1A�[82D�[2K

⠴ calculating...�[82D�[2K�[1A�[82D�[2K

⠦ calculating...�[82D�[2K�[1A�[82D�[2K

⠧ calculating...�[82D�[2K�[1A�[82D�[2K

⠇ calculating...�[82D�[2K�[1A�[82D�[2K

⠏ calculating...�[82D�[2K�[1A�[82D�[2K

⠋ calculating...�[82D�[2K�[1A�[82D�[2K

⠙ calculating...�[82D�[2K�[1A�[82D�[2K

⠹ calculating...�[82D�[2K�[1A�[82D�[2K

⠸ calculating...�[82D�[2K�[1A�[82D�[2K

⠼ calculating...�[82D�[2K�[1A�[82D�[2K

⠴ calculating...�[82D�[2K�[1A�[82D�[2K

⠦ calculating...�[82D�[2K�[1A�[82D�[2K

⠧ calculating...�[82D�[2K�[1A�[82D�[2K

⠇ calculating...�[82D�[2K�[1A�[82D�[2K

⠏ calculating...�[82D�[2K�[1A�[82D�[2K

⠋ calculating...�[82D�[2K�[1A�[82D�[2K

⠙ calculating...�[82D�[2K�[1A�[82D�[2K

⠹ calculating...�[82D�[2K�[1A�[82D�[2K

⠸ calculating...�[82D�[2K�[1A�[82D�[2K

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252mHello! How can I assist you�[0m�[38;5;252m today?�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m

�[38;2;255;166;87m🚀 > �[0m�[7mE�[0m�[38;5;240mxecute something...�[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87ma�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mar�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare y�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare yo�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a h�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a ho�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a hoe�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m�[38;2;255;166;87m🚀 > �[0m�[0m�[38;2;255;166;87mare you a hoe�[0m

⠴ calculating...�[82D�[2K�[1A�[82D�[2K

⠦ calculating...�[82D�[2K�[1A�[82D�[2K

⠧ calculating...�[82D�[2K�[1A�[82D�[2K

⠇ calculating...�[82D�[2K�[1A�[82D�[2K

⠏ calculating...�[82D�[2K�[1A�[82D�[2K

⠋ calculating...�[82D�[2K�[1A�[82D�[2K

⠙ calculating...�[82D�[2K�[1A�[82D�[2K

⠹ calculating...�[82D�[2K�[1A�[82D�[2K

⠸ calculating...�[82D�[2K�[1A�[82D�[2K

⠼ calculating...�[82D�[2K�[1A�[82D�[2K

⠴ calculating...�[82D�[2K�[1A�[82D�[2K

⠦ calculating...�[82D�[2K�[1A�[82D�[2K

⠧ calculating...�[82D�[2K�[1A�[82D�[2K

⠇ calculating...�[82D�[2K�[1A�[82D�[2K

⠏ calculating...�[82D�[2K�[1A�[82D�[2K

⠋ calculating...�[82D�[2K�[1A�[82D�[2K

⠙ calculating...�[82D�[2K�[1A�[82D�[2K

⠹ calculating...�[82D�[2K�[1A�[82D�[2K

⠸ calculating...�[82D�[2K�[1A�[82D�[2K

⠼ calculating...�[82D�[2K�[1A�[82D�[2K

⠴ calculating...�[82D�[2K�[1A�[82D�[2K

⠦ calculating...�[82D�[2K�[1A�[82D�[2K

⠧ calculating...�[82D�[2K�[1A�[82D�[2K

⠇ calculating...�[82D�[2K�[1A�[82D�[2K

�[38;5;252m�[0m�[38;5;252m�[0m �[38;5;252mI'm an AI assistant designed to help with command line tasks. How can I assist�[0m�[38;5;252m�[0m

�[0m�[38;5;252m�[0m �[38;5;252myou?�[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m�[38;5;252m �[0m

�[38;2;255;166;87m🚀 > �[0m�[7mE�[0m�[38;5;240mxecute something...�[0m�[82D�[2J�[1;1H�[1;1H�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[7mE�[0m�[38;5;240mxecute something...�[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a hoe�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a ho�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a h�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you a�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare you�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare yo�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare y�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare �[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mare�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87mar�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[38;2;255;166;87ma�[0m�[7m �[0m�[82D�[82D�[2K�[38;2;255;166;87m🚀 > �[0m�[7mE�[0m�[38;5;240mxecute something...�[0m�[82D�[2K�[?25h�[?1002l�[?1003l�[1m�[7m%�[27m�[1m�[0m

�]0;nittani@nittani-inspiron73062n1:
�[0m�[27m�[24m�[J
�[1m�[33m(6)�[39m�[0m �[1m�[36m
�[39m�[0m took �[1m�[33m57s�[39m�[0m
�[1m�[32m%�[39m�[0m �[K�[?1h�=�[?2004h^��[7m^�[7m[�[27mOA�����[1m�[7m�[31m^�[1m�[7m�[31m[�[0m�[27m�[39m�[1m�[31mO�[1m�[31mA�[0m�[39m�����[27m�[1m�[31my�[27m�[1m�[31ma�[1m�[31mi�[0m�[39m�[0m�[39m �����[0m�[32my�[0m�[32ma�[0m�[32mi�[39m����[32mb�[32ma�[32ms�[39mh record.sh yai�[16D�[32ms�[32mh�[39m �[4mr�[4me�[4mc�[4mo�[4mr�[4md�[4m.�[4ms�[4mh�[24m�[4C��� �����[14D�[32mm�[32mi�[32mc�[32mr�[39mo�[4m �[4mr�[4me�[4mc�[4mo�[4mr�[4md�[4m.�[4ms�[24mh�[12D�[32mr�[32mo�[39m�[24m �[7C�[4ms�[4mh�[24m�[?1l�>�[?2004l

�[?1049h�[22;0;0t�[?25l�[H�[2J�[?2004h�[?1000h�[?1002h�[?1006h�[?25l�[1;1H�(B�[m�[38;5;248;48;5;235m 1 �(B�[m�[97;48;5;236m �(B�[m�[38;5;242;48;5;236m #!/bin/bash �(B�[m�[97;48;5;236m �[2;1H�(B�[m�[38;5;248;48;5;236m 2 �(B�[m�[97;48;5;235m �[3;1H�(B�[m�[38;5;248;48;5;236m 3 �(B�[m�[97;48;5;235m �(B�[m�[38;5;242;48;5;235m # Specify the output file names �[4;1H�(B�[m�[38;5;248;48;5;236m 4 �(B�[m�[38;5;242;48;5;235m session_file="session-$(date +"%Y%m%d-%H%M%S").log" �[5;1H�(B�[m�[38;5;248;48;5;236m 5 �(B�[m�[38;5;242;48;5;235m output_file="program-output.txt" �[6;1H�(B�[m�[38;5;248;48;5;236m 6 �(B�[m�[38;5;242;48;5;235m �[7;1H�(B�[m�[38;5;248;48;5;236m 7 �(B�[m�[38;5;242;48;5;235m # Start recording the session �[8;1H�(B�[m�[38;5;248;48;5;236m 8 �(B�[m�[38;5;242;48;5;235m script -f "$session_file" �[9;1H�(B�[m�[38;5;248;48;5;236m 9 �(B�[m�[38;5;242;48;5;235m �[10;1H�(B�[m�[38;5;248;48;5;236m10 �(B�[m�[38;5;242;48;5;235m # Run your program and redirect output to a file �[11;1H�(B�[m�[38;5;248;48;5;236m11 �(B�[m�[38;5;242;48;5;235m your-program > "$output_file" �[12;1H�(B�[m�[38;5;248;48;5;236m12 �(B�[m�[38;5;242;48;5;235m �[13;1H�(B�[m�[38;5;248;48;5;236m13 �(B�[m�[38;5;242;48;5;235m # Exit the script after the session is finished �[14;1H�(B�[m�[38;5;248;48;5;236m14 �(B�[m�[38;5;242;48;5;235m exit �(B�[m�[97;48;5;235m �[15;1H�(B�[m�[38;5;248;48;5;236m15 �(B�[m�[97;48;5;235m �[16;1H �[17;1H �[18;1H �[19;1H �[20;1H �[21;1H �[22;1H �[23;1H �[24;1H�(B�[m�[38;5;235;107mrecord.sh (1,1) | ft:shell | unix | utf-8 Alt-g: bindings, Ctrl-g: help�[25;1H�(B�[m�[97;48;5;235m �[1;4H�[?12l�[?25h�[?25l�[4;4H session_file=�(B�[m�[38;5;185;48;5;235m"session-$(date +"�(B�[m�[97;48;5;235m%Y%m%d-%H%M%S�(B�[m�[38;5;185;48;5;235m").log"�(B�[m�[97;48;5;235m �[5;4H output_file=�(B�[m�[38;5;185;48;5;235m"program-output.txt"�(B�[m�[97;48;5;235m �[6;4H �[7;4H �[8;4H script�(B�[m�[38;5;161;48;5;235m -f�(B�[m�[97;48;5;235m �(B�[m�[38;5;185;48;5;235m"$session_file"�(B�[m�[97;48;5;235m �[9;4H �[10;4H �[11;4H your-program > �(B�[m�[38;5;185;48;5;235m"$output_file"�(B�[m�[97;48;5;235m �[12;4H �[13;4H �[14;4H �(B�[m�[38;5;161;48;5;235mexit�(B�[m�[97;48;5;235m �[1;4H�[?12l�[?25h`

@XxnittanixX
Copy link

sorry this is my first time contributing to a project on github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants