Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transition from minimal 0.1.0 to 1.0.0

Features

Features flags have been removed. MINIMAL_PROMPT, MINIMAL_RPROMPT, MINIMAL_SSH_HOSTNAME and MINIMAL_MAGIC_ENTER can be safely removed.

In order to disable left or right prompt, just assign an empty array:

MNML_PROMPT=()
MNML_RPROMPT=()

Same goes for magic enter:

MNML_MAGICENTER=()

Settings

Settings are renamed with a new prefix: MNML. A quick sed should suffice:

sed -i.bak 's/MINIMAL/MNML/g' ~/.zshrc

MINIMAL_PWD_LEN and MINIMAL_PWD_CHAR_LEN have been moved to mnml_cwd arguments.

MINIMAL_MAGIC_ENTER_MARGIN has been removed.

Functions

This mechanism is now obsolete. To migrate, rename those function and assign them into the approrpiate array.

minimal_magic_output and minimal_magic_output_base have been removed.
Refactor minimal_magic_output function by removing the call to minimal_magic_output_base and update MNML_MAGICENTER accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment