Skip to content

kirelagin/prompt_kir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

This is a prompt theme for Zsh. It is heavily based on adam2 by Adam Spiers.

Installation

Just source prompt_kir.zsh from your .zshrc.

Looks

This theme looks totally like adam2 but has a number of enhancements:

  • The code is readable (I hope).
  • Resizes dynamically on the terminal window resize.
  • Arrow on the left doesn't look ugly in UTF-8 mode.
  • When you are root, arrow turns into # and there are more bright red colours around.
  • Hostname on the right is bold while the @ is not.
  • Lines are white by default.

Default colours are green for current directory and cyan for username and hostname:

Prompt

Root prompt

Distro- and host-specific colours

Each my machine has a global variable $DISTRO_COLOUR. For example, machines running Gentoo have this variable set to 12 (blue) while on Debian I set it to 15 (white).

Also, all my servers have associated colours (in fact, their hostnames are derived from those colours). $HOST_COLOUR tells the colour of a server and on non-servers it is set to 15 (white).

So, the theme makes use of those variables: if they are set, it will use $DISTRO_COLOUR for the colour of the current directory on the left and $HOST_COLOUR for username and hostname on the right.

Here is the prompt of my laptop:

kirNote prompt

About

Prompt theme for ZSH similar to adam2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages