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.0.tar.gz (6.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bash_history_done_right-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 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.0.tar.gz
Algorithm Hash digest
SHA256 ee7ee7036249bd2f841c73cd9033df5dc61d560ba739af1cf84b9452505c4954
MD5 03b2bed47b3d4413be042352baf8847e
BLAKE2b-256 8960d2ac7f9556490815518e5d129aedf96b8228a88101a8f323ef26933aec1c

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