Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dark-kitt/zsh-git-plugin
ZSH Git integration, to display the current working directory and the current working branch.
https://github.com/dark-kitt/zsh-git-plugin
Last synced: 25 days ago
JSON representation
ZSH Git integration, to display the current working directory and the current working branch.
- Host: GitHub
- URL: https://github.com/dark-kitt/zsh-git-plugin
- Owner: dark-kitt
- License: cc-by-sa-4.0
- Created: 2024-03-26T08:29:22.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-04-27T16:24:13.000Z (about 1 month ago)
- Last Synced: 2024-04-28T07:43:48.744Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Lists
- awesome-zsh-plugins - git-plugin (dark-kitt) - `git` integration that displays the current directory and `git` branch. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - git-plugin (dark-kitt) - `git` integration that displays the current directory and `git` branch. (Plugins / ZSH on Windows)
README
# ZSH Git Plugin
ZSH Git integration, to display the current working directory and the current working branch.Use **[alt + p]** to display the whole working path.
## Install
Just copy and paste the snippet in your **`.zshrc`** file. This should be located in your **`$HOME`** directory.
Or clone this repository in your zsh plugin directory (e.g. **`$HOME/.zsh`**). Afterwards, you can add the following line to your **`.zshrc`** file.
```shell
source $HOME/.zsh/zsh-git-plugin.plugin.zsh
```---
### For custom styling:
- choose your own *`colors / style`* at the **top**
- add your **icons** inside the **`PROMPT`** string
- edit the **`bindkey`** for your preferred **shortcut**Or just rewrite everything and use this script as default.
Have fun!