Skip to content

Modification of af-magic for oh-my-zsh to include path shortening/abbreviation in the prompt.

License

Notifications You must be signed in to change notification settings

rslavin/af-magic-dynamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

af-magic-dynamic

This is a copy of the af-magic theme by andyfleming, but with a dynamically-resizing prompt based on a minimum amount of whitespace which can be set by the user. The prompt changes by collapsing the prompt either by using the shrink-path plugin or by truncating it to only show the last segments (this can also be set by the user). See comments for details.

af-magic-dynamic

Settings

Set the following shell variables in your .zshrc file to customize the theme.

MIN_PROMPT_WHITESPACE - Specifies the minimum number of characters to reserve for entering commands. The directory path shortens to accommodate this number. This is set to 60 by default.

ENABLE_SHRINK_PROMPT - Will use the shrink-path plugin (which must be installed separately) to truncate parent directories to single letter (see below). Note that this can decrease performance. af-magic-dynamic

About

Modification of af-magic for oh-my-zsh to include path shortening/abbreviation in the prompt.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published