Linux bash aliases generator
Project description
topalias
topalias - Linux bash/zsh alias generator and statistics from command history, written on Python.
Features
- Generate short alias for popular command from bash history
- Fully typed with annotations and checked with mypy, PEP561 compatible
Installation
From pypi.org repository:
pip3 install -U --user topalias
From source:
git clone https://github.com/CSRedRat/topalias
python3 topalias/setup.py install
Example
Showcase how your project can be used:
topalias # check if you uses aliases in ~/.bash_aliases - analyze and print usage statistics, offers to find new simple aliases
topalias -h # print help
topalias history # analyze local bash history
topalias h --acr=2 # set minimal length for generated acronym filter, so that exclude some short command and find long, hard, usable command
File path search order:
- .bash_history in current . directory
- .bash_history in home ~ directory
- example development files in topalias/data
Run as python module:
python3 -m topalias
Run as python script without install:
git clone https://github.com/CSRedRat/topalias
python3 topalias/topalias/cli.py -h
License
Contributors вњЁ
Thanks goes to these wonderful people (emoji key):
Sergey Chudakov 💻 🚇 🤔 🚧 📦 🧑‍🏫 💡 |
GitLab repository mirror with CI/CD: https://gitlab.com/CSRedRat/topalias
Version history
We follow Semantic Versions.
Version 1.1.7
- Build and publish working package
Version 0.1.0
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
topalias-1.2.0.tar.gz
(8.2 kB
view hashes)
Built Distributions
topalias-1.2.0-py3.8.egg
(10.9 kB
view hashes)
Close
Hashes for topalias-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5c52d383a6bf1dc61a53b357faafabb8a818706795efb934b4e586919325df7 |
|
MD5 | 113326bf5a283d01eb787183742161dc |
|
BLAKE2b-256 | c1d0829d7b9e074b261afc3959daa279b55a6acbb7dd6c6ffe3a6784d2a513aa |