Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baliestri/git-profiles.plugin.zsh
Plugin for managing multiple git profiles.
https://github.com/baliestri/git-profiles.plugin.zsh
git git-profile zsh zsh-plugin
Last synced: about 2 months ago
JSON representation
Plugin for managing multiple git profiles.
- Host: GitHub
- URL: https://github.com/baliestri/git-profiles.plugin.zsh
- Owner: baliestri
- License: mit
- Created: 2023-04-22T01:29:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-22T01:50:44.000Z (over 1 year ago)
- Last Synced: 2024-04-16T16:22:31.413Z (9 months ago)
- Topics: git, git-profile, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Plugin for managing multiple `git` profiles.
![](.github/assets/preview.gif)
## Installation
### Using [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
```sh
git clone https://github.com/baliestri/git-profiles.plugin.zsh.git $ZSH_CUSTOM/plugins/git-profiles
```Then add `git-profiles` to the plugins array in your zshrc file:
```sh
plugins=(... git-profiles)
```### Using [zplug](https://github.com/zplug/zplug)
```sh
zplug "baliestri/git-profiles.plugin.zsh"
```### Using [zinit](https://github.com/zdharma-continuum/zinit)
```sh
zinit light baliestri/git-profiles.plugin.zsh
```### Using [zgenom](https://github.com/jandamm/zgenom)
```sh
zgenom load baliestri/git-profiles.plugin.zsh
```### Using [zi](https://github.com/z-shell/zi)
```sh
zi light baliestri/git-profiles.plugin.zsh
```## Usage
### Define where your profiles are stored
```sh
# ~/.zshrcexport GIT_PROFILES_FILE="$HOME/.config/git/profiles" # Fallback to $HOME/.git-profiles
```### Add a new profile
```sh
# ~/.config/git/profiles[profile "default"]
name = Bruno Sales
email = [email protected]
# signingkey = 1234567890[profile "work"]
name = Bruno Sales
email = [email protected]
# signingkey = 1234567890
path = "/home/baliestri/work"
```