Awesome
Elm Zsh Theme
Elm
is a simple Zsh theme that I fancy and that I've created for personal use. Its name (which is a tribute to Elm Lang), and the leading λ
and separator ::
characters, are an expression of my love for functional programming.
Archiving Update
As I have switched to using the Fish Shell, I am archiving this repo. Hoever, the code is stable and still works fine. It only means i won't be updating it any longer.
FEATURES
PROMPT:
- leading character
- user @ hostname
- separator character
- path: 1up/current dir
- git_super_status
- branch_info
RPROMPT:
- date and clock
USAGE
Download the theme's files
These cURL
commands will download the theme files in the right directory:
curl -sLJ https://raw.githubusercontent.com/gacallea/elm-zsh-theme/main/themes/elm-light.zsh-theme -o $ZSH_CUSTOM/themes/elm-light.zsh-theme
curl -sLJ https://raw.githubusercontent.com/gacallea/elm-zsh-theme/main/themes/elm-dark.zsh-theme -o $ZSH_CUSTOM/themes/elm-dark.zsh-theme
Choose a variant
This theme comes with two variants:
Set Your Theme
Suppose you have chosen elm-light
as your theme, set it in ~/.zshrc
like so:
ZSH_THEME="elm-light"
YOU MAY NEED
CUSTOMIZATION
This theme is easy to modify and customize.
Suppose you don't really fancy the date and clock on the right, just empty RPROMPT
:
RPROMPT=""
Or that you don't care about why functional programming matters, just change the leading λ
to whatever you fancy:
# Leading Character
local lead_char='%{$WHITE_BOLD%}λ%{$RESET_COLOR%}'
Same for the separator ::
character:
# Separator Char
local separator='%{$WHITE%}::%{$RESET_COLOR%}'
LICENSE
This theme is licensed under the terms of the GPLv3 or later license. A copy of the GPLv3 is included here.