Package: topalias
topaliastopalias- Linux bash/zsh alias generator and statistics from command history, written onPython.FeaturesGenerate short alias for popular command from bash/zsh shell historyCommand history statistics & analyticsParametrised inputConsole help for all commands, options and argumentsShell workflow hintsInstallationFrompypi.org repository:pip3install-U--usertopaliasFrom source:gitclonehttps://github.com/CSRedRat/topalias
python3topalias/setup.pyinstall--userRun as python script without install:gitclonehttps://github.com/CSRedRat/topalias
python3topalias/topalias/cli.py-hInstall requirementssudoaptinstallpython3python3-pip-yAdd PATH environment variable for run Python tools as Linux utility:echo"export PATH=$PATH:$HOME/.local/bin">>~/.bashrcsource~/.bashrcUsageWithout parameters utility check if you use alias in ~/.bash_aliases - analyze and print usage statistics, then find new simple aliasespython3-mtopalias# run as python moduletopalias# check aliases and print suggestion bash command historytopalias-h# print helptopalias--zsh# work with zsh shell command historytopalias--min=2# set minimal length for generated acronym filter, so that exclude some short command and find long, hard, usable commandtopalias--debughistory# only analyze local bash history and print filtered rowsFiles path search order:directory from execution parameter.bash_history in . current directory.bash_history in ~ user home directoryexample development files in topalias/dataYou can change dot files search path to another user home directory:topalias-f/home/user# or topalias --path /home/userWrite yoursoftware reviewand add you awesome aliases toInsights topicor.bash_aliasesexample.Also you can use topalias utility inBash for Giton Windows and inWSL.DocumentationUsage: topalias [OPTIONS] COMMAND [ARGS]

Options:
  -l, --min INTEGER     Print alias acronym not less that value. Default: 1
  -c, --count INTEGER   Print specified number acronym suggestions. Default:
                        20

  --filter              Filter used aliases in history. Default: False
  -z, --zsh             Use zsh shell history file .zsh_history. Default:
                        False

  -f, --path TEXT       Change custom directory for files: .bash_aliases,
                        .bash_history, .zsh_history

  --version             Print current program version and check latest on
                        pypi.org.

  --debug / --no-debug  Enable debug strings in output.
  -h, --help            Show this message and exit.

Commands:
  hint     Print all hints.
  history  Print bash history file.
  version  Get program current and available version.TODOmultiline command in historycheck if alias name already usedcheck if alias already addedadd any another acronym algorithm with semanticmore statistics & analytics (used dir, utils, parameters, time)alias max length parametercommand ignore list flag: top, emacs, vimoften used command "ssh username@servername" suggest add to .ssh/config/find password and other sensitivity data in history and suggest clean (now print "Hint: add space ' ' before sensitive command in terminal for skip save current command in history!")добавить локализацию на русский язык в зависимости от локали ОСPlease add you feature requests:https://github.com/CSRedRat/topalias/issues/newLicenseGPLv3Contributors ✨Thanks goes to these wonderful people (emoji key):Sergey Chudakov💻🚇🤔🚧📦Sergey Morozik💻GitLab repository mirror with CI/CD:https://gitlab.com/CSRedRat/topaliasGitHub Pages:https://csredrat.github.io/topalias/Version historyWe followSemantic Versions.Version 2.0.13Fix encoding issue with zsh history file (#13,#17)Fix .bash_aliases path definition (#16)Version 2.0.0Add zsh shell support (-z/--zsh flag)Add version check (version/--version)--filter flag exclude used alias from command top chart--debug mode-f change dot files search path-c count suggestion parameterAdd "example" command for give aliases exampleAdd aliases usage statisticVersion 1.1.7Build and publish working packageVersion 0.1.0Initial release