Share your terminal history on web
You can clone this repository using the command below(git needs to be installed).
git clone https://github.com/fdiblen/termshare.git
Add the following lines to your .bashrc
export HISTTIMEFORMAT="%s (%H:%M:%S):"
export HISTSIZE=1000000
export HISTFILESIZE=1000000
PROMPT_COMMAND='history -a'
shopt -s histappend
#export HISTFILE=~/.custom_file
Create a virtual environment:
python3 -m venv venv
Activate the virtual environment:
. ./venv/bin/activate
Install required Python packages:
pip install --upgrade pip pipenv
pipenv install
The following command will start sharing your terminal history on port 80. To start the server, you will need admin rights (sudo).
sudo python server.py