Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Green0wl/zsh-git-kali-prompt
https://github.com/Green0wl/zsh-git-kali-prompt
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Green0wl/zsh-git-kali-prompt
- Owner: Green0wl
- License: other
- Created: 2023-07-17T14:52:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-07-27T17:28:07.000Z (10 months ago)
- Last Synced: 2024-01-25T23:12:25.404Z (4 months ago)
- Language: Shell
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-zsh-plugins - git-kali - Based on [An informative `git` prompt for kali](https://github.com/olivierverdier/zsh-git-prompt). Includes decorators for `git` status, username@host, and the current directory. (Themes / ZSH on Windows)
- fucking-awesome-zsh-plugins - git-kali - Based on <b><code> 1695⭐</code></b> <b><code> 396🍴</code></b> [An informative `git` prompt for kali](https://github.com/olivierverdier/zsh-git-prompt)). Includes decorators for `git` status, username@host, and the current directory. (Themes / ZSH on Windows)
README
# Informative git prompt for zsh in Linux
[![Build Status](https://travis-ci.org/olivierverdier/zsh-git-prompt.svg)](https://travis-ci.org/olivierverdier/zsh-git-prompt)
This prompt is a specialisation of repository called "Informative git prompt for zsh" for Kali Linux, which you can find [here](https://github.com/olivierverdier/zsh-git-prompt). Thanks to its author for the idea and implementation!
A `zsh` prompt that displays information about the current git repository. In particular the branch name, difference with remote branch, number of files staged, changed, etc.
## Designations
You can find all the repository state designations in the `zsh-git-kali-prompt.zsh` file by copying the repository.## Dependencies
In order for git prompt for Linux to work, the following components must be installed on your local machine:
1. [Git](https://git-scm.com/).
2. [Python 3](https://www.python.org/downloads/). In scripts, references to Python 3 appear as `python3`. If you have `python` installed, create a symbolic or hard-drive link with the `ln` command to `python3`, or simply rename them in the `zsh-git-kali-prompt.zsh` file.
3. For the git information prompt to work correctly, your **Kali Linux** must use the `zsh` UNIX command shell.## Install
### Using the plugin manager under zsh:
1. Use the standard installation methods specific to your plugin under zsh.### Edit your `~/.zshrc` file:
1. Clone this repository to the $HOME directory or some other location (I'll do it in $HOME, and use that as the path in the future).
2. Source the file `zsh-git-kali-prompt.plugin.zsh` from your `~/.zshrc` config file, and
configure your prompt. So, somewhere (might be in the end of the file) in `~/.zshrc` (**recommended at the end of the file**), you should have:```sh
# zsh git prompt setup.
source $HOME/zsh-git-kali-prompt/zsh-git-kali-prompt.plugin.zsh
```
3. Restart the console, or write the `zsh` command to start a new session with the applied changes to the `~/.zshrc` settings.
4. Go in a git repository and test it! This only works if you are in a repository.## Deletion
To remove the git command prompt, you need to remove the entire `zsh-git-kali-prompt` directory (where all the prompt scripts are located), and lines in `~/.zshrc` that you added there during installation.
## Customisation
- You may redefine the function `git_super_status` (after the `source` statement) to adapt it to your needs (to change the order in which the information is displayed).
- Define the variable `ZSH_THEME_GIT_PROMPT_CACHE` in order to enable caching.
- You may also change a number of variables (which name start with `ZSH_THEME_GIT_PROMPT_`) to change the appearance of the prompt. Take a look in the file `zsh-git-kali-prompt.zsh` to see how the function `git_super_status` is defined, and what variables are available.