A clean and customizable oh my zsh theme with Git integration, designed for dark terminals. It features a colorful prompt with dynamic Git branch and status indicators, and distinct ls
colors for files and directories.
Dynamic Prompt:
[path :: branch status] ➜
%F{75}
).::
in white.main
/master
: Green (%F{40}
)dev
: Yellow (%F{226}
)feature-*
: Larn (%F{75}
)%F{214}
)%F{226}
):
*
: Modified or staged files+
: Untracked files!
: Merge conflicts➜
) in larn.[path] ➜
Colorful ls
Output:
ls -G
) and Linux (ls --color=auto
).Lightweight and Optimized:
Clone or Copy the Theme:
larn.zsh-theme
in your oh my zsh custom themes directory:
cp larn.zsh-theme ~/.oh-my-zsh/themes/
Set the Theme:
~/.zshrc
and set the theme:Verify Setup:
[path :: branch status] ➜
.[path] ➜
.ls -lah
to confirm colorful file and directory output.echo $TERM
should output xterm-256color
or similar).Change Colors:
BLUE='%F{75}'
for path and arrow).%F{69}
for darker larn, %F{228}
for brighter yellow).Modify Prompt:
PROMPT
string in set_prompt
to change symbols or layout.➜
with another symbol like →
or $
.Extend Git Status:
parse_git_status
to add more Git indicators (e.g., ahead/behind remote).LS Colors:
LSCOLORS
(macOS) or LS_COLORS
(Linux) for different file type colors.man dircolors
(Linux) or man ls
(macOS) for details.Prompt not displaying correctly?
ZSH_THEME="larn"
is set in ~/.zshrc
.git --version
).is_git_repo
works: Run git rev-parse --is-inside-work-tree
in a Git directory.Colors not showing?
echo $TERM
).LS colors not working?
CLICOLOR=1
(macOS) or ls --color=auto
(Linux) is enabled.LSCOLORS
or LS_COLORS
syntax.This theme is released under the MIT License. Feel free to modify and share!
Suggestions and pull requests are welcome! Please open an issue or submit a pull request on the repository (if hosted).
Happy coding with Larn ZSH Theme! 🚀
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4