https://github.com/kimyvgy/gitstatus-zsh-theme
https://github.com/kimyvgy/gitstatus-zsh-theme
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kimyvgy/gitstatus-zsh-theme
- Owner: kimyvgy
- License: mit
- Created: 2020-04-16T20:30:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T03:03:01.000Z (about 5 years ago)
- Last Synced: 2025-03-25T10:21:22.413Z (8 months ago)
- Size: 43.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - gitstatus - Shows command and `git` status decorations. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - gitstatus - Shows command and `git` status decorations. (Themes / ZSH on Windows)
README
## Gitstatus ZSH theme
Fish-like [gitstatus](https://github.com/oh-my-fish/theme-gitstatus) theme for ZSH. Simple is the best!

### Features
- Shows command return status
- Show full pwd
- Support Fish-like shrink path
```bash
# shrink path is enabled:
/home/kimyvgy/kimnh-0823/mayfest/docker -> ~/k/m/docker
# shrink path is disabled:
/home/kimyvgy/kimnh-0823/mayfest/docker -> ~/kimnh-0823/mayfest/docker
```
- Show git status (branch, color)
### Installation
- Clone this repository into `~/.oh-my-zsh/custom/themes` folder:
```bash
git clone https://github.com/kimyvgy/gitstatus-zsh-theme.git ${ZSH_CUSTOM}/themes/gitstatus
```
- Activate this theme in `~/.zshrc` file:
```bash
ZSH_THEME="gitstatus/gitstatus"
```
- Apply theme:
```bash
source ~/.zshrc
```
- Enable `shrink-path` plugin which is included in `oh-my-zsh`, you just only enable plugin:
```bash
# ~/.zshrc
plugins=(shrink-path [...plugins])
```