MAQPNADocs

maqpna alias print

Print the alias snippet for a shell

Configure

Synopsis#

maqpna alias print [--name ma] [--shell SHELL]

Description#

From the help of maqpna alias:

install adds a shell function NAME (default ma) that runs maqpna, with tab completion, to your shell's startup file (bash ~/.bashrc, zsh ~/.zshrc, fish ~/.config/fish/config.fish, PowerShell $PROFILE), between "# >>> maqpna alias NAME >>>" markers: running it again replaces the block, uninstall removes it. It refuses a NAME that is already a command on PATH unless --force. Help and errors then name the alias (maqpna sets MAQPNA_PROG_NAME). Open a new shell, or source the file, to use it.

The binary itself also answers to maqpnactl and ma: the install scripts link ma next to maqpna when no ma exists on PATH. Package managers (Homebrew, Scoop, winget) do not install ma; use this command.

Flags#

FlagTypeDescriptionDefault
--forceswitchinstall even when NAME is already a command on PATHnone
--namestringthe alias namema
--rcstringthe startup file to edit (default: the shell's)none
--shellstringbash | zsh | fish | powershell (default: from $SHELL)zsh

The global flags (--context, -o, --no-color, ...) work with every command.

Examples#

maqpna alias print --shell fish

What happens when you run it#

  • --force: install even when NAME is already a command on PATH.

Exit codes#

CodeMeaning
0success
1error (the message says what failed, with a hint when there is one)
2usage error: unknown flag, missing argument or bad value; the synopsis is printed
3a check failed, a change is blocked, or a result did not match (tamper, policy mismatch) (not used by this command)