Skip to main content
100%

Agnoster ZSH Theme with New Line

✓ Published0🌍 Public
EEkthelion
Last edited Mar 11, 2016
Created on Aug 1, 2017

This example demonstrates a customized ZSH prompt theme that displays contextual system and version-control information. It shows a segmented prompt with a Git branch indicator, a dirty/clean status, and a separate segment for the current directory, all separated by Powerline-style glyphs. The theme uses custom shell functions like `prompt_segment` and `prompt_end` to draw colored background and foreground segments via ANSI escape codes, and it detects Git and Mercurial repositories through commands such as `git rev-parse` and `hg prompt`. It also checks for SSH connections, user context, and background jobs to conditionally display relevant information.

AI-generated description

Similar vizzes