Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmccombs/thayne.zsh-theme
A simple zsh theme that just does what I want
https://github.com/tmccombs/thayne.zsh-theme
Last synced: about 2 months ago
JSON representation
A simple zsh theme that just does what I want
- Host: GitHub
- URL: https://github.com/tmccombs/thayne.zsh-theme
- Owner: tmccombs
- License: apache-2.0
- Created: 2024-06-24T07:22:17.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T07:32:55.000Z (6 months ago)
- Last Synced: 2024-10-13T20:42:00.231Z (3 months ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- trackawesomelist - thayne (⭐0) - Includes decorators for exit status of last command, time to run if > 1 second, current time, current directory and `git` status. Requires a Nerd Font. (Recently Updated / [Jul 16, 2024](/content/2024/07/16/README.md))
README
# thayne.zsh-theme
A simple zsh theme that just does what I want![Screenshot](assets/screenshot-2024-07-14.png)
![Screenshot with error](assets/screenshot-error.png)
## Features
- Iconography using nerd fonts
- Show status code of previous command if non-zero
- Show duration of last command, if > 1 second
- Show current time
- Show current directory
- Show current git branch## Why I made this
I used [powerlevel10k](https://github.com/romkatv/powerlevel10k) for a while, and I think that it is a great project.
However, I came to the conclusion that it was too complicated for what
I needed, and making my own theme would work better for me personally.The specific issues I had with powerlevel10k are as follows:
- It includes a ton of features that I don't use
- Because it does so much, the code is difficult to understand without spending a lot of time studying it
- Editing the configuration file is pretty difficult. The configuration generated by the interactive wizard is huge,
and while it is possible to trim it down, getting what I wanted was still a considerable amount of code.
- Although there is a lot of configurability, it isn't well documented. You have to rely on documentation for powerlevel9k,
and the limited comments in the generated configuration file.
- It requires compiling a c program for git status, which itself links to a patched version of libgit2 that needs to be compiled
- It uses an unusual directory structure, which makes it difficult to install as a system packageSo, much as I appreciate the work done by romkatv, I realized that I could create my own prompt that did everything I needed without having to depend on
a massive project like powerlevel10k.## Future improvements
Some things I'd like that this doesn't do yet:
- [ ] Some kind of directory shortening if the currend directory is long
- [ ] Show if the current git repo is "dirty"
- [ ] Something like powelevel10k's transient prompt, but keep the time, duration, and status code.