Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        



gitprofiles.plugin.zsh


gitprofiles.plugin.zsh

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
# ~/.zshrc

zstyle ":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"
```