Skip to main content

Fix bash history to share between terminals, search by prefix, and keep history forever

Project description

bash-history-done-right

Python package to implement https://abarry.org/bash-history-finally-done-right/

Fixes bash history to:

  • Share history across terminals (union of all terminals' history in a new terminal)
  • Keep each terminal's own history while it is open
  • Search history by prefix with up/down arrow keys
  • Keep all history forever in ~/.bash_eternal_history

Install

pip install bash-history-done-right

That's it. Your ~/.bashrc is patched automatically (a backup is saved to ~/.bashrc.bak). Open a new terminal to use it.

Uninstall

bash-history-done-right uninstall
pip uninstall bash-history-done-right

Re-install / customize

# Re-install (e.g. after editing .bashrc)
bash-history-done-right install

# Install without arrow-key prefix search
bash-history-done-right install --no-arrow-search

# Install without eternal history file
bash-history-done-right install --no-eternal-history

Publishing to PyPI

Only upload the sdist (no wheel) so that setup.py runs on the user's machine:

python -m build --sdist
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bash_history_done_right-1.0.1.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file bash_history_done_right-1.0.1.tar.gz.

File metadata

  • Download URL: bash_history_done_right-1.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for bash_history_done_right-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9ec90f923f7c06722a3bd8a81b4022a36a1f3c1b07a773e4171468821e56c0f9
MD5 4288714ee29f6036a13f47ea397c2d18
BLAKE2b-256 4dcc41374e64eeb0664bdd280f43a7c6d60fde4f4cb5696d8c464fbf013d7dc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page