https://github.com/cpea2506/zcraft
A minimal zsh theme
https://github.com/cpea2506/zcraft
Last synced: 9 months ago
JSON representation
A minimal zsh theme
- Host: GitHub
- URL: https://github.com/cpea2506/zcraft
- Owner: cpea2506
- License: mit
- Created: 2021-12-14T19:42:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-28T07:25:37.000Z (over 3 years ago)
- Last Synced: 2024-12-30T21:14:24.146Z (11 months ago)
- Language: Shell
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - zcraft - Minimalist theme with decorations for `git` status, last command exit status and the time taken by the last command. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - zcraft - Minimalist theme with decorations for `git` status, last command exit status and the time taken by the last command. (Themes / ZSH on Windows)
README
## Introduction
A minimal zsh theme written in shell
## Features
- [x] Display if there is any error command
- [x] Display change for each git stage
- [x] Show time for each command's execution
- [x] Show what language you are working on
## Option
Put every options in `~/.config/zsh/exports.zsh`
- You can display if your current git branch is ahead or behind remote
```bash
# default
export ZCRAFT_GIT_SHOW_AHEAD_BEHIND=true
```
## Installation
1. Install dependencies:
- We use `exa` as a modern replacement for default `ls` command. See installation here: [exa](https://github.com/ogham/exa#installation).
- If you don't want to use it. You can remove all aliases related to `exa` at the end of `aliases.zsh` with tag `#tree search`
2. Setup this configuration into `~/.config/zsh`
```bash
git clone git@github.com:cpea2506/zcraft.git ~/.config/zsh
```
3. Export `ZDOTDIR` and execute `~/config/.zshrc` in `~/.zshrc`
```bash
echo "export ZDOTDIR=$HOME/.config/zsh\nsource $HOME/.config/zsh/.zshrc" >> ~/.zshrc
```
4. Exit zsh and enjoy your new look.