Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/empresslabs/gitprofiles.plugin.zsh
Plugin for managing multiple git profiles.
https://github.com/empresslabs/gitprofiles.plugin.zsh
git git-profile gitprofile zsh zsh-plugin
Last synced: 25 days ago
JSON representation
Plugin for managing multiple git profiles.
- Host: GitHub
- URL: https://github.com/empresslabs/gitprofiles.plugin.zsh
- Owner: empresslabs
- License: mit
- Created: 2023-04-22T01:29:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-26T20:23:12.000Z (about 1 month ago)
- Last Synced: 2024-12-27T06:58:16.768Z (about 1 month ago)
- Topics: git, git-profile, gitprofile, zsh, zsh-plugin
- Language: Shell
- Homepage:
- Size: 98.6 KB
- Stars: 2
- 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
#### [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
```shell
git clone https://github.com/empresslabs/gitprofiles.plugin.zsh.git $ZSH_CUSTOM/plugins/gitprofiles
``````shell
~/.zshrc
plugins=(... gitprofiles)
```#### [zinit](https://github.com/zdharma-continuum/zinit)
```shell
zinit light empresslabs/gitprofiles.plugin.zsh
```#### [zi](https://github.com/z-shell/zi)
```shell
zi light empresslabs/gitprofiles.plugin.zsh
```#### [zgenom](https://github.com/jandamm/zgenom)
```shell
zgenom load empresslabs/gitprofiles.plugin.zsh
```#### [zplug](https://github.com/zplug/zplug)
```shell
zplug empresslabs/gitprofiles.plugin.zsh
```## Usage
#### Define where your profiles are stored
```sh
# ~/.zshrczstyle ":empresslabs:git:profile" path "$HOME/.config/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"
```