Looking for Sensible Qiime2 CLI Aliases

The tab-completion supported by Qiime + Zsh is super useful (well done to whoever implemented that!), but CLI aliases would often be faster for commands I run regularly.

For example, by adding the following to my .zshrc, I only have to type "qtp" instead of "qiime tools peek", which saves a decent number of keystrokes over time:
alias qtp='qiime tools peek'

I'm starting to assemble a list of such substitutions for myself, but I'm curious if anyone has already created a fairly comprehensive list of sensible shorthands that they'd be willing to share?

Perhaps a plugin could be created for Oh My Zsh users with said aliases, such as the ones created for conda, tmux, and etc, here.

2 Likes

@charlesalexandreroy, I have a few, but all fairly simple. Would certainly be interested in seeing what you come up with, and I'm sure other users would too. Feel free to share in Community Contributions if you make some progress on this.

I think I would start with a simple list of alias commands that could be added to a .bashrc or .zshrc file (or sourced directly from one of those files) as opposed to a zsh-specific plugin. That would let users of different shells access it. I know zsh is default on macOS, but most HPC systems that I've worked with don't have it installed and bash is the default (additionally some macOS users - myself included - change from zsh to bash on macOS, so I can more easily use the same shell configuration files across Linux and macOS systems).

1 Like