Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdiblen/termshare
Share your terminal history on web
https://github.com/fdiblen/termshare
Last synced: about 1 month ago
JSON representation
Share your terminal history on web
- Host: GitHub
- URL: https://github.com/fdiblen/termshare
- Owner: fdiblen
- License: apache-2.0
- Created: 2020-04-13T00:24:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T03:34:56.000Z (almost 4 years ago)
- Last Synced: 2023-03-04T13:46:35.738Z (almost 2 years ago)
- Language: HTML
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# termshare
Share your terminal history on web## Setup
### 0-Clone this repository
You can clone this repository using the command below(git needs to be installed).
```bash
git clone https://github.com/fdiblen/termshare.git
```### 1-Bash shell
Add the following lines to your `.bashrc`
```shell
export HISTTIMEFORMAT="%s (%H:%M:%S):"
export HISTSIZE=1000000
export HISTFILESIZE=1000000
PROMPT_COMMAND='history -a'
shopt -s histappend
#export HISTFILE=~/.custom_file
```### 2-Virtual environment
Create a virtual environment:
```bash
python3 -m venv venv
```Activate the virtual environment:
```bash
. ./venv/bin/activate
```### 3-Install dependencies
Install required Python packages:
```bash
pip install --upgrade pip pipenv
``````bash
pipenv install
```### 4-Start the server
The following command will start sharing your terminal history on port 80. To start the server, you will need admin rights (sudo).
```bash
sudo python server.py
```