Skip to content

jnooree/jnooree-zsh-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jnooree-zsh-theme

Introduction

This is a minimal zsh theme with colors adopted from the robbyrussell's theme. Displays current working directory and git information1 in the prompt.

If you're interested in this theme, then you might also want to check out my zim configurations.

Options

Several shell variables could control this theme's behavior:

  • DEFAULT_USER: If $USER is same to $DEFAULT_USER, username would not appear in the rprompt; otherwise it will be displayed in this format: ${USER}@${SHORT_HOST}. I've found this setting quite useful for whom might switch between multiple users (e.g., system admins). This must be set before sourcing the theme.
  • MIN_COLUMNS: If the length of (shell expanded) current directory is greater than $COLUMNS - $MIN_COLUMNS, current working directory in the prompt will be truncated to the last two path components. If $MIN_COLUMNS is not set, it is default to 30.

Screenshots

Default

Screenshot of default profile

With git prompt

Screenshot wit git prompt

On ssh connection

image

Session of non-default user

image

License and disclaimer

The MIT License.

Footnotes

  1. Implemented with zsh's vsc_info function.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages