Skip to main content

Linux bash aliases generator

Project description

topalias

Build Status Coverage GitLab pipeline Python Version

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

generated bash aliases

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

GPLv3

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


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 details)

Uploaded Source

Built Distributions

topalias-1.2.0-py3.8.egg (10.9 kB view details)

Uploaded Source

topalias-1.2.0-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file topalias-1.2.0.tar.gz.

File metadata

  • Download URL: topalias-1.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for topalias-1.2.0.tar.gz
Algorithm Hash digest
SHA256 3ac501f6c9e14556cff7ba0b22260f824791bb405421c5e121e8580ebac9d922
MD5 9356d7a6ed522ba96ad3475ba9aaa7e9
BLAKE2b-256 8abeb0e6f717a1946f45ba82fdf37bddbe3bb3bb81a91e47bd5a579aa44953b3

See more details on using hashes here.

File details

Details for the file topalias-1.2.0-py3.8.egg.

File metadata

  • Download URL: topalias-1.2.0-py3.8.egg
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for topalias-1.2.0-py3.8.egg
Algorithm Hash digest
SHA256 910b60642acbf06db219c2310ad5a068eb8ca39fe6fc1d6a311fd2014678fe6d
MD5 21898cc52cffee601d38f0a6d6d0a8b6
BLAKE2b-256 ede3287fe5a82fbcd8879f4b50764914b000400c1ba50306da3b9405a09715e3

See more details on using hashes here.

File details

Details for the file topalias-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: topalias-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for topalias-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e5c52d383a6bf1dc61a53b357faafabb8a818706795efb934b4e586919325df7
MD5 113326bf5a283d01eb787183742161dc
BLAKE2b-256 c1d0829d7b9e074b261afc3959daa279b55a6acbb7dd6c6ffe3a6784d2a513aa

See more details on using hashes here.

Supported by

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