Skip to content

Instantly share code, notes, and snippets.

@subnixr
Created December 18, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subnixr/ea5a5180ab2c193e6ca1238b4dbbc8bd to your computer and use it in GitHub Desktop.
Save subnixr/ea5a5180ab2c193e6ca1238b4dbbc8bd to your computer and use it in GitHub Desktop.
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